• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checkboxs in ScrollPane

 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I want to add around 20 checkboxes into a scrollpane that is placed in the 400 x 300 pixcel GUI. The scrollbar should be used to scroll through the checkboxes.
Can somebody give me some sample code how to do this.

Thanks in Advance.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good idea would be to put JCheckBoxes in a JList. I found this code that shows how to do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic