This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCheckBoxes in the JScrollPane

 
Priyatham Anisetty
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I am new to java GUI stuff. I have a array of names say



I want to display them as checkBoxes in a JScrollPane. and have a button "Add" next to the scrollpanel. So when a user selects the contacts say 1,3,and5 and press the add button I want to get the names user selected and perform some action.

Any suggestions to add JCheckBox to JScrollPane is really appreciated.

*The testContacts is dynamic.

Thanks in Advance.
 
Paul Clapham
Sheriff
Pie
Posts: 20187
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, normally you'd just add a JPanel to the JScrollPane, and then put other components into the JPanel in the usual way.


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic