[OpenMap Users] Re: resizing BasicMapPanel

From: OpenMap Support <openmap_at_bbn.com>
Date: Mon, 4 May 2009 12:49:57 -0400

Hi Geir,

The mainPanel is not providing layout information to the BasicMapPanel.

        JPanel panel = new JPanel(new BorderLayout());
         BasicMapPanel bmap = new BasicMapPanel(null);
         panel.add(bmap, BorderLayout.CENTER);

Hope this helps,

Don


On Apr 28, 2009, at 7:50 AM, <Geir.Ovsttun_at_dnv.com> <Geir.Ovsttun_at_dnv.com
> wrote:

> Hi,
>
> I am using BasicMapPanel as an embedded component in a swing
> application
> It is simply included in a JPanel :
>
> JPanel mainPanel = new JPanel();
> BasicMapPanel bmap = new BasicMapPanel(null);
> mainPanel.add(bmap);
>
> When I resize my application all my other components resize
> correctly including the enclosing mainPanel but I can't get the bmap
> (BasicMapPanel) to resize. It has a constant size regardless.
>
> How can I get the BasicMapPanel to follow resizing of an enclosing
> JPanel ?
>
> Med vennlig hilsen / Best regards,
> for Det Norske Veritas AS
> Geir Øvsttun
> _______________________________
> Senior Information Architect
> Business Assurance / Defence
>
> Phone/Mobile: +47 452 49 453
> Web: www.dnv.com
>
>
> **************************************************************************************The
> contents of this e-mail message and any attachments are
> confidential and are intended solely for the addressee. If you have
> received this transmission in error, please immediately notify the
> sender by return e-mail and delete this message and its attachments.
> Any unauthorized use, copying or dissemination of this transmission
> is prohibited. Neither the confidentiality nor the integrity of this
> message can be vouched for following transmission on the
> Internet
> .**************************************************************************************

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Mon May 04 2009 - 12:50:25 EDT

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