jcheckbox Questions

1

Solved

I have a swing application in which I want to use a JCheckbox with an icon. I constructed the icon as follows: JCheckBox unsubmit = new JCheckBox("Unsubmit",applet.undo); When I do this, the la...
Mundell asked 25/7, 2012 at 19:49

3

Solved

I'm sure this is a rediculously easy question, but I just can't find the answer to it anywhere. I have a JCheckbox that I need to evaluate the boolean value of, and then change the value with an if...
Sheya asked 30/5, 2012 at 17:35

2

Solved

EDIT: Using the solutions presented below, I have changed the code to have a JPanel inside a JScrollPane. Using a JButton i add JCheckBoxes to the JPanel inside the JScrollPane. This was one proble...
Triad asked 19/4, 2012 at 18:43

2

Solved

I am attempting to modify the standard Swing JTree to intermingle nodes with and without checkboxes. This is an example: When I attempt to check/uncheck one of the checkboxes (the 'User 01' node...
Frigg asked 13/1, 2010 at 16:58

3

Solved

I am using a single JCheckBox as an un-editable indicator for when something happens in my program. Right now I have this: public void update(Observable o, Object arg) { try { if (Controller.c....
Skipton asked 7/12, 2011 at 20:4

2

Solved

Can someone explain to me why I lost the selection (set by setSelected()) for JCheckBox when I put the JOptionPane into the ItemListener? Is this a bug ? It is curious, that if this process is del...
Newsy asked 26/11, 2011 at 23:41

1

Does anyone know how to put a JCheckBox in a JTable column? Something like this: I took this from How To use Tables Thanks in advance.
Censurable asked 12/9, 2011 at 17:54

4

Solved

I have a JTable, that has one column that is text which is not editable and the second column is a check box that displays boolean values.... Now what i want is, when the user selects multiple rows...
Botha asked 24/12, 2010 at 14:14

1

Solved

Does anyone know if there is an easy way to put a border around a JCheckBox object including the label? setBorder doesn't seem to have any effect. I know I could put each checkbox inside of a JPane...
Purism asked 2/12, 2010 at 12:47

4

Solved

Is there a look-and-feel-independent way to align a component (e.g. a JLabel) horizontally with the text of a JCheckBox? I am trying to use values from the UIDefaults to predict the location of th...
Depressomotor asked 18/9, 2010 at 14:1

© 2022 - 2024 — McMap. All rights reserved.