Re: [OpenMap Users] problem with menuItems??

From: Don Dietrick <dietrick@bbn.com>
Date: Thu Mar 31 2005 - 09:38:40 EST

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@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Thu Mar 31 09:40:38 2005

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:41 EDT