This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes SWT ignore GUI Repaint when shell is minimized and maximized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT ignore GUI Repaint when shell is minimized and maximized" Watch "SWT ignore GUI Repaint when shell is minimized and maximized" New topic
Author

SWT ignore GUI Repaint when shell is minimized and maximized

anil sehgal
Greenhorn

Joined: Sep 13, 2011
Posts: 9
Hi,

How can i ignore the GUI repaint in SWT when I minimize and then maximize the shell. I have used gc.drawline method to draw some lines in the shell, but the lines are lost when I minimize and maximize the shell. Can anyone please help out.

Thanks,
Anil

anil sehgal
Greenhorn

Joined: Sep 13, 2011
Posts: 9
I had to store every line i make and call drawline method in shell paint listener :P
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SWT ignore GUI Repaint when shell is minimized and maximized