RE: [OpenMap Users] problem w\adding menuItems??

From: Rick Lane <lane_richard_b_at_bah.com>
Date: Wed, 30 Mar 2005 09:37:50 -0500

Are you adding an ActionListener to the JMenuItem?

...

JMenuItem menuItem = new JMenuItem("Save As");
menuItem.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e){
                // do something when this menu item is clicked
        }
});

...


-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Bader Mohammad Halawani
Sent: Wednesday, March 30, 2005 1:03 AM
To: openmap-users_at_bbn.com
Subject: IMP: [OpenMap Users] problem w\adding menuItems??

hi genetelmen,

I did not recive any response to my E-mail
could any one answer it


Quoting Bader Mohammad Halawani <st202475_at_ccse.kfupm.edu.sa>:

> hi gentelmen,
> I am faceing a problem when I add a menuItem like(gotoMenuItem ,
> combinedCoorPanal ,saveAsImageMenuItem )
> that is the menu is created and can be seen BUT without event
> Listiner(no
> response when clicking on)
> i am using basicMapPanel,
> could any one help in explain this problem?
> we add the menu by directly creating object from the default constructor
> and
> add thim to the mapHandler object.
>
> for example
>
> MenuBar menuBar = new MenuBar();
> GoToMenu goTo = new GoToMenu();
> menuBar.add(goTo);
> mapHandler.add(menuBar);
>
> thanks in advance,
> __________________________________________
> 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"]
>



__________________________________________
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"]
--
[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 Wed Mar 30 2005 - 09:39:20 EST

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