Solved

JList and ListCellRenderer...

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresSpecial  challenge 13 42
bigHeights  challenge 13 55
powerN  challenge 3 47
advertisement module in core php 4 89
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 …
This video teaches viewers about errors in exception handling.

760 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

19 Experts available now in Live!

Get 1:1 Help Now