Solved

JList and ListCellRenderer...

Posted on 1998-09-23
2
300 Views
Last Modified: 2008-02-20
I want to create a ListCellRenderer for a JList that consists of a JCheckBox and a JTextField.  How can I do this, and also how can I set the checkboxes selected, deselected, and find out which ones are selected and not selected?
0
Comment
Question by:beemer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
evijay earned 50 total points
ID: 1224867
You cannot use JList to do this since the JList has cells for which you can attach List cell renderers not editors. You have to go for JTable with one column for achieving the same effect. JList is used for selecting one/m out of n known values and not for inputting some text etc.,.
JTable is the correct component for that purpose.


0
 

Author Comment

by:beemer
ID: 1224868
How can I do this with JTable?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java: anonymous class 4 55
Print Rhino Java Array in Javascript 1 58
passing enum to a method 4 52
using executorService 3 24
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question