RE: [OpenMap Users] OpenMap Eclipse plug-in

From: Jackson, John <John.Jackson_at_argonst.com>
Date: Thu, 3 Nov 2005 16:07:04 -0500

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_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]
Sent: Thursday, November 03, 2005 2:52 PM
To: openmap-users_at_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_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 Thu Nov 03 2005 - 16:22:45 EST

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