File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15286
    
    6

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


GenRocket - A Test Data Generation Platform
 
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?
ScrollBar(VERY URGENT PLEASE)
jsplitpane resizing problem
retrieving users' bookmarks
how to add scrollpane for a jframe?