JCheckBox is the Java Swing implementation of a check box, an item that can be selected or deselected, and which displays its state to the user.
Questions tagged [jcheckbox]
613 questions
0
votes
1 answer
Delete chekbox in Swing using values
This code i posted already once Delete check-boxes in swings and I got the answer for that. But soon enough my project requirement got changed so, I have decided to change my code. Instead of index deleting trying to delete the values directly from…

rakeshhatwar
- 33
- 5
0
votes
1 answer
Can you combine a CheckBox and string in one cell in JTable?
I'm wondering if it is possible to put a CheckBox and string in one cell. The string would be used to track how long the checkbox was checked for. I'd like the cell to be laid out like the ColorRenderer cell in this example.
The problem is I can't…

user3474852
- 27
- 3
0
votes
1 answer
how to get a value if a JCheckedBox is checked in JFrame
Am a newbie to JFrame, am designing an application... In that I have created 16 checkboxes, each assigned different value... Now my question is when a JCheckBox is checked I want to write that value in a JFormattedTextField...
I have added…

Ramkumar P
- 209
- 1
- 2
- 14
0
votes
1 answer
checkboxes inside a cell in a jtable with access in a database
i'm having a little problem in putting a checkbox in my jtable. there are four columns in my jtable the last 2 columns have checkboxes. the data in my jtable are from my database. this is my error "Exception in thread "AWT-EventQueue-0"…

user3291163
- 19
- 1
- 7
0
votes
1 answer
EmptyBorder around JCheckBox becomes visible when checkbox selected
I've set an EmptyBorder around my JCheckBox (for the purpose of indenting it, but that doesn't really matter). When I select (or deselect) my JCheckBox, the border gets drawn around it as a dashed black line. I don't want to even see this border at…

2rs2ts
- 10,662
- 10
- 51
- 95
0
votes
2 answers
JCheckBox in Java to take of tick in all checkbox pressing the button
I want to take off the tick from all checkbox what I have in GUI, when I pressed on button - dynamically. Is it possible?
JButton clean = new JButton("Clean");
clean.addActionListener(new MyCleanListener());
buttonBox.add(clean);
public class…

Stas
- 3
- 4
0
votes
1 answer
adding check box in the jTable
i am using swings for creating the desktop application . i have created the functionality which provided the data from the database and insert that into the Jtable .now i want to use provide the additional facility that include the additional…

user10101
- 15
- 1
- 7
0
votes
1 answer
CheckBox in JTable is not showing when data is fed to the Table from database but shows true false values
I have a JTable which is fed data using DefaultTableModel. Now my question is when there was in the table and there were only empty rows in the table, the columns with Boolean type were showing in check box form. But when I added data to the table…

Fawad Khalil
- 357
- 3
- 20
0
votes
0 answers
set a jCheckBox to indeterminate
I have a program that uses jCheckBoxes. basically, each checkbox controls a number of other checkboxes. I need the parent checkbox to be in the indeterminate state if the other checkboxes do not all contain the same value. But if the user clicks the…

Duffluc
- 27
- 2
- 6
0
votes
4 answers
Save a checkbox in JFrame
SO I made a Java Program and there is a check box in my code. I want the check box variable saved for next startup on the JFrame application.
I want the check box "Exit Launcher on Support" variable and the "Developer Console" to remember upon…
user3341016
0
votes
2 answers
Checkbox in only one JTable Cell
I want to create an JTable with 2 columns, which looks like a survey.
So on the left are the questions and on the right the user can give his answers.
But in one line there should be a Checkbox on the right side, so that the user only can answer…

Jaran
- 212
- 2
- 10
0
votes
0 answers
JCheckBox selection
This is a snippet from a JCheckBox list. I need to capture events of items checked .
As of now it is only selecting list code which is highlighted
private class ControlPanel extends JPanel {
public ControlPanel() {
this.add(new…

Alfaromeo
- 379
- 2
- 6
- 14
0
votes
3 answers
How do I reduce the size of the JCheckBox icon?
I need to reduce the size of a JCheckBox item, which has no text. So far I tried to override the methods getPreferredSize() and getMaximumSize(). Also setting the Font size or the size of the JCheckBox itself doesn't evoke any changes. Is there a…

My-Name-Is
- 4,814
- 10
- 44
- 84
0
votes
1 answer
jtable checkbox with action binding
hi my java swing project have a table with last column is boolean values..i changed it into chceckbox.but i need to bind event on it and know if it is check or not..!!
Below Code works it is showing checkbox
retunTable=new JTable(model){
…

user3318622
- 167
- 2
- 3
- 11
0
votes
2 answers
how to set jcheckbox inside jtable dynamically
In this picture the return table head values show in the checkbox .
here jtable the values from database
I tried it but classcastexception occured because of boolean value cast to string
i don't know why that error occured
this is my code
…

Prasanth A R
- 4,046
- 9
- 48
- 76