This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes removing components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "removing components" Watch "removing components" New topic
Author

removing components

marko stone
Greenhorn

Joined: Oct 16, 2002
Posts: 23
hello
i want remove all components from JPanel jp for add them there again with another values
for remove i use
jp.removeAll();
jp.repaint();
it's not work
jp.revalidate() have same effect
what's wrong ?
thanks
Ananth Murthy
Greenhorn

Joined: Sep 07, 2003
Posts: 2
The code is correct and works. I tested
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: removing components
 
Similar Threads
clear JPanel
JSplitPane
Which LayoutManager To Use ?
AWT in an Applet
Quick question about interfaces