Re: [OpenMap Users] problem with menuItems??

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 31 Mar 2005 09:38:40 -0500

On Mar 31, 2005, at 6:30 AM, Bader Mohammad Halawani wrote:

>
> Hi ladies and gentelmen,
>
> my problem with dealing with menus is that the listners is not working
> at all.
> this code show you how i add the menu to my basic panel.
>
> ____________________________________________________________
> OpenMapFrame frame = new OpenMapFrame("BBT Group");
> MapHandler mapHandler = mapPanel.getMapHandler();
> mapHandler.add(frame);
> mapHandler.add(new LayerHandler());
> mapHandler.add(new MouseDelegator());
> ...
> ...
> ...
> JMenuBar menuBar = new JMenuBar();
> NavigateMenu navMenu2 = new NavigateMenu();


> menuBar.add(navMenu2);

Instead of this ^^^

do:

mapHandler.add(navMenu2);

- Don


> mapHandler.add(menuBar);
> ____________________________________________________________
>
> could you please see what is the wronge here
> and thanks,
>
>
>
>
>
>
>
> Bader M.H. Halawani
> COmputer Engineering department (COE)
> KFUPM university
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 31 2005 - 09:40:38 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT