Nope, only the one listener... I explicitly checked to make sure I wasn't
kicking it off twice. The following code block:
public boolean mouseClicked(MouseEvent e)
{
System.out.println("A1");
fireRequestMessage("Test message");
System.out.println("A2");
}
will print A1, display the popup and hold until it is dismissed, display the
popup again, and hold until it is dismissed, then print A2.
Kevin E. Allen, SSgt, USAF
Air Force Information Warfare Center, IOASI
Database Applications Developer
> -----Original Message-----
> From: Don Dietrick [mailto:dietrick@bbn.com]
> Sent: Friday, August 03, 2001 1:24 PM
> To: Allen Kevin E SSgt AFIWC/IOAS
> Cc: 'openmap-users@bbn.com'
> Subject: Re: Information Popup window doubling
>
>
> Hi Kevin,
>
> Are you calling fireRequestMessage() from more than one mouse event
> method (like mouseClicked and mouseReleased, or something
> like that)?
> I'd check to see how many times fireRequestMessage() is
> getting called.
>
> The layers talk directly to the InformationDelegator, so I
> don't think
> you are being affected by multiple listeners.
>
> - Don
>
> On Friday, August 3, 2001, at 02:04 PM, Allen Kevin E SSgt AFIWC/IOAS
> wrote:
>
> > Hi all, having another odd problem I was hoping someone
> could help me
> > with.
> >
> > In a custom layer, I'm using fireRequestMessage() to
> display a popup
> > dialog
> > with additional information when the user clicks on a map
> icon. The
> > event
> > is trapping and firing just fine, but for some reason
> > fireRequestMessage()
> > is displaying the popup dialog twice, and I'm not sure why.
> >
> > I'm guessing that there may be two listeners on it, the
> MapBean and the
> > status bar object itself, but can't find anywhere that
> they're getting
> > added
> > specifically. That leads me to think that it may be adding them as
> > part of
> > the higher-level layer add methods, and I'm not sure how to
> avoid them
> > if
> > that is the case.
> >
> > Thanks in advance,
> >
> > Kevin E. Allen, SSgt, USAF
> > Air Force Information Warfare Center, IOASI
> > Database Applications Developer
> >
> > --
> > [To unsubscribe to this list send an email to "majdart@bbn.com"
> > with the following text in the BODY of the message "unsubscribe
> > openmap-users"]
> >
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Donald F. Dietrick, dietrick@bbn.com
> BBN Technologies, 10 Moulton Street, Cambridge, MA 02138
> 617.873.3031 FAX 2794
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Mon Aug 6 11:55:28 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT