• Post Reply Bookmark Topic Watch Topic
  • New Topic

remove from JPanel  RSS feed

 
Andrew Lit
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
this is what i have

and my question would why this remove() "thing" doesn't work or i use it incorrectly.
thank you in advance
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to call .validate() on your JPanel so that SWING will repaint for you and reflect the changes to the GUI.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!