dcsimg
JWindow + resize + validate = ugly flicker
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   j_c
Posted On:   Saturday, April 5, 2003 01:51 PM

hello, does anyone how to stop the flicker when resizing a jwindow ? .... Dimension cSize = this.getSize(); int cWidth = (int)cSize.getWidth(); int cHeight = (int)cSize.getHeight(); if ((int)e.getX() > (int)pressedpoint.x) { int newWidth = cWidth + ((int)e.getX() - (int pressedpoint.x); super.setSize(newWidth,cHeight); super.validate(); } The JWindow scales to the size but the panels/components do flicker while resizing. We are using JDK 1.3 (We can't upgrade to 1.4 |: ) thanks, Jens    More>>

hello,

does anyone how to stop the flicker when resizing a jwindow ?


....
Dimension cSize = this.getSize();
int cWidth = (int)cSize.getWidth();
int cHeight = (int)cSize.getHeight();

if ((int)e.getX() > (int)pressedpoint.x) {
int newWidth = cWidth + ((int)e.getX() - (int pressedpoint.x);
super.setSize(newWidth,cHeight);
super.validate();
}




The JWindow scales to the size but the panels/components do flicker while resizing. We are using JDK 1.3 (We can't upgrade to 1.4 |: )


thanks,

Jens    <<Less
About | Sitemap | Contact