This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 8 in Action this week in the Java 8 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: 15292
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checkboxs in ScrollPane
 
Similar Threads
Urgent!! How to add a component to a JScrollPane?
jsplitpane resizing problem
how to add scrollpane for a jframe?
retrieving users' bookmarks
ScrollBar(VERY URGENT PLEASE)