wood burning stoves 2.0
The moose likes Swing / AWT / SWT and the fly likes Checkboxs  in ScrollPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Checkboxs  in ScrollPane" Watch "Checkboxs  in ScrollPane" New topic

Checkboxs in ScrollPane

satya sahu
Ranch Hand

Joined: Mar 26, 2003
Posts: 97
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

Joined: Jul 11, 2001
Posts: 15302

A good idea would be to put JCheckBoxes in a JList. I found this code that shows how to do it.

GenRocket - Experts at Building Test Data
I agree. Here's the link: http://aspose.com/file-tools
subject: Checkboxs in ScrollPane
It's not a secret anymore!