RE: [OpenMap Users] Refresh Problem

From: Monte Philip V NPRI <MontePV_at_Npt.NUWC.Navy.Mil>
Date: Tue, 02 May 2006 12:00:28 -0400

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 Tue May 02 2006 - 12:03:09 EDT

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