A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Sep 09, 2006
Nov 21, 2007 13:17:00
How do I clear a
I mean, I want to remove all its components without calling each of them individually.
Joined: Oct 13, 2005
Nov 21, 2007 15:34:00
Have you looked through the API specifications for
to see whether there are any methods which remove all components?
Joined: Jan 28, 2005
Nov 21, 2007 19:12:00
Just my two cents: Don't forget to invoke validate() on the
to reflect changes when you remove all its components.
To be or not to be. It's a question.
Joined: Jul 26, 2007
Nov 21, 2007 21:27:00
Better make it revalidate() instead of validate() since its a
How to ask questions
Donate a pint, save a life!
Onff-turn it on!
I agree. Here's the link:
subject: clear JPanel
super.painComponent(g) not clearing my Jpanel
How to: clear the JPanel before repainting?
WA #2 ..... word association
Setting the size of JComboBox
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014