RE: [OpenMap Users] OpenMap Eclipse plug-in

From: Jackson, John <John.Jackson@argonst.com>
Date: Thu Nov 03 2005 - 16:07:04 EST

Hi,

I didn't use Eclipse, I used netbeans and had the same problem.

I solved is by using this in my code:

      MapPanel mapPanel = new BasicMapPanel(propertyHandler);
      JComponent Imap = (JComponent)mapPanel;
      try
      {
         MapHandler mapHandler = mapPanel.getMapHandler();
         JMenuBar mapMenuBar = mapPanel.getMapMenuBar();
         add(mapMenuBar, BorderLayout.NORTH);
         add(Imap, BorderLayout.CENTER);
         setDisplayName(NbBundle.getMessage(iMapComponent.class,
"LC_map_title"));
      }
      catch (MultipleSoloMapComponentException msmce)

The important part being JmenuBar mapMenuBar = mapPanel.getMapMenuBar();
And the add(mapMenuBar, BorderLayout.NORTH);

Hope this solves your problem.

J.J.

-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
Sent: Thursday, November 03, 2005 2:52 PM
To: openmap-users@bbn.com
Subject: [OpenMap Users] OpenMap Eclipse plug-in

Has anyone tried to create an OpenMap Eclipse plug-in?

I'm able to get the map to display, but I can't seem to get the OpenMap
toolbar to show up.

Thanks in advance,

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

--
[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 Thu Nov 3 16:24:05 2005

This archive was generated by hypermail 2.1.8 : Thu Nov 03 2005 - 16:24:06 EST