Re: [OpenMap Users] Refresh Problem

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 3 May 2006 08:06:02 -0400

Hi Philip,

Are you using a MapBean or a BasicMapPanel? If you are using a
MapBean (or BufferedMapBean, etc), have you tried wrapping it inside
a JPanel?

- Don


On May 2, 2006, at 12:00 PM, Monte Philip V NPRI wrote:

> I am calling it on the parent component that the map is inside (a
> JFrame). But, I found out that the repaint works fine with that
> code on my machine. It does not, however, work on another
> developer's machine. So, I am not sure if this is an Openmap issue
> or a display/video card issue.
> -----Original Message-----
> From: Chris Paul [mailto:chris.paul_at_issinc.com]
> Sent: Tuesday, May 02, 2006 11:06 AM
> To: 'Monte Philip V NPRI'
> Subject: RE: [OpenMap Users] Refresh Problem
>
> Hm... Which component are you calling the repaint() method from?
>
>
>
> From: Monte Philip V NPRI [mailto:MontePV_at_Npt.NUWC.Navy.Mil]
> Sent: Tuesday, May 02, 2006 6:23 AM
> To: 'Chris Paul'
> Subject: RE: [OpenMap Users] Refresh Problem
>
>
>
> I have tried this with no luck.
>
> -----Original Message-----
> From: Chris Paul [mailto:chris.paul_at_issinc.com]
> Sent: Monday, May 01, 2006 5:04 PM
> To: 'Monte Philip V NPRI'
> Subject: RE: [OpenMap Users] Refresh Problem
>
> Since it sounds like your parent component is dictating when the
> map is redrawn, you could try calling a getParent().repaint(). I've
> had similar issues and this seemed to work for me.
>
>
>
> From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-
> users_at_bbn.com] On Behalf Of Monte Philip V NPRI
> Sent: Monday, May 01, 2006 2:29 PM
> To: 'openmap-users_at_bbn.com'
> Subject: [OpenMap Users] Refresh Problem
>
>
>
> I am having a refresh problem. I have two panels in a JFrame
> (CENTER and EAST), with the map in the center. I set the visibility
> of the east JPanel (which contains Swing components on them:
> labels, buttons, etc) to false. As a result, the map will expand
> over the area where the panel was filling the entire JFrame. This
> is what I expect, however, when I set the visibility of the east
> JPanel back to true, the map does not resize (even if I call a
> repaint, revalidate, ordoPrepare). It will only resize/redraw when
> I physcially resize the window.
>
>
>
> Philip V. Monte
>
> Software Engineer
> Code 2514, Warfare Interoperability Branch
> NAVSEA Warfare Centers Division Newport
> (401) 832-5325
>
>
>
>
>
>

--
[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 May 03 2006 - 08:08:02 EDT

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