Solved

JList and ListCellRenderer...

Posted on 1998-09-23
2
296 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 38
create a gui in perl 3 69
advertisement module in core php 4 144
eclipse shortcuts 9 45
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

929 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now