Win a copy of Head First Agile this week in the Agile forum!
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!