Questions tagged [jcheckbox]
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.
jcheckbox
615
questions
-1
votes
0
answers
37
views
How to trigger ItemListener by JCheckBox setSelected(false)?
I found this answer which states that ItemListener#itemStateChanged is useful as it is invoked when pragmatically setting the JCheckBox by setSelected(true). However, this doesn't apply for the case ...
0
votes
2
answers
78
views
Create a list of JCheckBoxes and put them into a JScollPane (UR Robot - URCap)
It has been a while since I programmed with Java Swing, so I'm not an expert with all it's methods. Just to contextualize what I'm doing, I'm building an URCap UI that I'm using in a UR Cobot (That's ...
0
votes
1
answer
40
views
Changing Button Text on JOptionPane during runtime
I want to change the text of the OK button (custom button text) during runtime with the ActionListener of a JCheckBox depending on the selection state. I dont want to create an own JDialog or JFrame.
...
0
votes
1
answer
32
views
if jCheckBox.isSelected() to display a new jTextArea (NetBeans)
I have a jCheckBox that, if the user checks it, creates a jTextArea under it, pushing everything and, if diselected, it disappears, pulling everything back.
Something like this, but in Java.: https://...
0
votes
0
answers
50
views
JTree Node as Checkbox is unclickable
I'm currently facing a challenge with my JTree implementation, and I'm seeking to find a solution. The JTree displays a hierarchical structure with nodes and checkboxes, and I want to make the root ...
0
votes
0
answers
20
views
can a JCheckbox be added to a JFrame?
I am new to programming, and I am wondering why I am getting an error when I try to add the checkBox oject to the JFrame object in the program:
import javax.swing.*;
public class MyCheckBoxExample ...
0
votes
1
answer
154
views
Adding CheckBox and Button in Table
I am trying to add separated column for button where every row will have have button and on click of the button color of the row should change
I am also trying to add checkbox column for every row
And ...
0
votes
1
answer
32
views
Is there a way to select multiple check boxes in java?
I have been programming this small app that the user can select one of the a font colors, blue , red and black, so i used JradioButton for them. also the user can choose a style to the font whether ...
-1
votes
1
answer
549
views
Get User Input and show it on field - Java [closed]
I am new to Java and want to start with making simple user input fields without MySQL.
Until now I got two problems that I can't solve.
First of all, how to get inputs from JCheckBox and JRadioButton?
...
0
votes
0
answers
25
views
One JList/JCheckBox combination not working
I am doing an exercise in a book where you have to test event handling. I have a JList with 3 font choices (Serif, SansSerif, and Monospaced) and two checkboxes for Bold and Italic. I have a JLabel ...
1
vote
1
answer
102
views
JTree - TreeCellEditor Implemetation changing the Node Object Class
I'm trying to build a JTree with TestObjectCheckBoxNode leafs where each leaf holds a TestObject, everything appears to work except when I check the box in the leaf it is changing the node from a ...
0
votes
1
answer
243
views
Change JTabel header renderer with JCheckBox
enter image description here
Hi All, I'm trying to add a checkbox in Jtable header to select and deselect all, that is working fine except that the header renderer is different that the rest of the ...
-1
votes
1
answer
81
views
It is possible to disable drag and drop on the cells of a jtable column, specifically a checkbox column
I can only disable drag and drop for the entire table, but I need to be able to do it for the cells of a specific column, I don't know if it will be possible.
Thank you for your answers.
-1
votes
1
answer
444
views
NumberFormatException: For input string: "Regular (Php 100)" [closed]
The program is supposed to compute the integer indicated for the radio button, checkbox, and combo box, but it always returns an error when I submit it.
Exception in thread "AWT-EventQueue-0"...
2
votes
0
answers
840
views
Change the size of a Swing checkbox
I am trying to make the checkbox bigger. It looks smaller according to the text. How can I do that?
My code looks like this:
JCheckBox checkBox = new JCheckBox(new VisibleAction(name,renderer,i));
...