Re: repaint has no effect

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Feb 22 2002 - 16:54:39 EST

Hi David,

I'd use the LayerHandler, and send a visible Layer to it, and let it add
the layer to the MapBean.

Either that, or send the MapBean a LayerEvent instead of adding a layer
using the JContainer method.

- Don

On Monday, February 18, 2002, at 04:16 AM, Marklund David wrote:

> Hi all,
> I have implemented a rightclick-menu to add layers. When I do
> 'map.add(layer)', it does not repaint itself. If I force repaint by
> hiding
> the window and
> then show it, it repaints.
>
> I have tried calling map.repaint(), and repaint on the panel it is in,
> with
> no success.
> Removing layers works fine.
>
>
> Any ideas ?
>
> Cheers
>
> David
>
> --
> [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 Fri Feb 22 16:55:13 2002

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