Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

removing components

 
marko stone
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is correct and works. I tested
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic