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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Checkboxs  in ScrollPane" Watch "Checkboxs  in ScrollPane" New topic
Author

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: 15299
    
    6

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
 
 
subject: Checkboxs in ScrollPane