[Date Prev][Date Next][Index][Thread]
[SGT Mail Archive]
[SGT Main Page]
RE: repaint problem...
*************************************************
Message from the sgt mail list.
*************************************************
Progress of sorts.. if set up a hierarchychanged listener for the plot pane and do a frame.repaint() it handles it correctly except as follows: if I manually resize the frame larger, I get the whiteout behavior (even if I do a frame.repaint in response to the frame's resize event..., if I resize the frame smaller its fine... once I do a zoom in with the mouse its fine forever more in all cases... maybe there is something in the doublebuffering or repaint manager I need to do to force proper initialization of the layers?
-Rich
-----Original Message-----
From: Schramm, Rich [mailto:rich@mbari.org]
Sent: Wednesday, December 05, 2001 5:29 PM
To: 'sgt@epic.noaa.gov'
Subject: repaint problem...
*************************************************
Message from the sgt mail list.
*************************************************
Im new to java and sgt, but here goes...
Im tying to place a plot like the timeseries plot onto a tabbed panel. - having one tab to be the graphic and the other be the tabular data... when I fire up the application, the demo plot flashes for an instant then 'goes white'. I have to zoom in or drag a different frame over the application window to get the graph to display- or switch between the two tabs . From then on it works great!. I cant seem to find the right method and the right place to make the call to get it to display. It is as if the viewable part of the plot is hidden behind a white screen when it first comes up. If I force the tab that the graph is on to be the selected tab, and call the frame.repaint() right after the setvisible its no problem.. but that is the only scenario that works so far. Any help greatly appreciated!
Rich Schramm
Monterey Bay Aquarium Research Institute
Moss Landing, CA 95039
(831)775-1712
*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.
*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.