• Post Reply Bookmark Topic Watch Topic
  • New Topic

Erase JList for other JList  RSS feed

 
Kenneth Van Gysegem
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a problem.
I am writing a programme that when one button is pressed a JList appears, whit data from a database. I want to make it so that when i press the other
button the firstJList disappears and the second one appears, making that the only available Jlist to click on
This is what I have so far:



thanks in advance,
Kenneth
 
Kenneth Van Gysegem
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh nevermind i think i found it:
list.removeAll();

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!