Skip to main content

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
-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 ...
Saleh Rezq's user avatar
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 ...
Searcher's user avatar
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. ...
Nisbo's user avatar
  • 71
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://...
MazakiArch's user avatar
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 ...
JamesB's user avatar
  • 493
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 ...
Ebrima mbye's user avatar
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 ...
breakingcode's user avatar
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 ...
Maryam Ali's user avatar
-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? ...
KORENS's user avatar
  • 13
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 ...
stupidmoron's user avatar
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 ...
cdubbs's user avatar
  • 93
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 ...
Maan Boushi's user avatar
-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.
FuryFox's user avatar
-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"...
SeanCry's user avatar
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)); ...
shnnens's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
41