Yep, that one did it... I was explicitly adding the layer to the
InformationDelegator, and I guess it was getting doubled off the map.
Figured it was something like that, but was in brain-lock on where it was
actually happening :)
Thanks for the help.
Kevin E. Allen, SSgt, USAF
Air Force Information Warfare Center, IOASI
Database Applications Developer
> -----Original Message-----
> From: Don Dietrick [mailto:dietrick@bbn.com]
> Sent: Monday, August 06, 2001 11:46 AM
> To: Allen Kevin E SSgt AFIWC/IOAS
> Cc: Don Dietrick; 'openmap-users@bbn.com'
> Subject: Re: Information Popup window doubling
>
>
> Hi Kevin,
>
> The InformationDelegator listens to the MapBean to get updates when
> layers get added/removed. The InformationDelegator will
> automatically
> add itself as an InfoDisplayListener to new layers.
>
> Are you explicitly adding the InformationDelegator to your
> layer using
> the BeanContext? You might want to check how many lDListeners are
> attached to your layer (see Layer.java).
>
>
> - Don
>
>
>
> On Monday, August 6, 2001, at 11:52 AM, Allen Kevin E SSgt AFIWC/IOAS
> wrote:
>
> > 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"]
> >
>
-- [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 13:40:06 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT