jcheckbox
Is there a way to customise Java's setEnabled(false)?
Let\'s say you have a JCheckBox you want to use as an on/off indicator. You use setEnabled(false) to disable mouse clicks on the JCheckBox. But setEnabled(false) also grays 开发者_如何学Goout the chec[详细]
2023-02-09 05:57 分类:问答Make JCheckbox bigger..?
i want to make my JCheckboxes in a JTable bigger (for Touchscreen), but it doesn\'t change the size.开发者_高级运维[详细]
2023-02-06 09:03 分类:问答JCheckBox' value resets / doesn't change
I have several components, all inheriting JCheckBox without overwriting anything from it, stored in a vector, which is then traversed and each of the components is added to a dialog[详细]
2023-02-06 02:58 分类:问答Multiple row selection in JTable
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 m[详细]
2023-02-01 06:15 分类:问答is there a way to change jcheckbox to use a cross instead of a tick? JAVA
I have a Jcheckbox but it only has the tick to show its checked, is there a way i can change it to a cross, or circle?[详细]
2023-01-28 08:33 分类:问答adding border to jcheckbox
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 JPanel[详细]
2023-01-27 19:55 分类:问答How do I make a JPopupMenu appear when a JCheckBox is clicked?
I have a JCheckBox in a program (labeled \"Use MiniTimer\") that, when right-clicked, shows a JPopupMenu with options \"Show on Close\", \"Show on Minimize\", \"Show on Close or Minimize\", and \"Do n[详细]
2023-01-19 04:07 分类:问答How to prevent JPopUpMenu disappearing when checking checkboxes in it?
I want to use JCheckBoxMenuItems in a JPopupMenu. It works, but the problem is that the popup menu disappears when a checkb开发者_StackOverflowox item has been checked or unchecked. So if one wants to[详细]
2023-01-16 19:55 分类:问答Notification when a checkbox in a JTable is checked
I\'ve searched for this for quite a while and haven\'t found a clear example anywhere.I\'m a Java newbee using NetBeans.I have a boolean value in the first column of a JTable (called \"Enabled\") and[详细]
2023-01-15 17:39 分类:问答How to check that a JCheckBox is checked?
How can I check if a JCheckBox is开发者_如何学编程 checked?Use the isSelected method. You can also use an ItemListener so you\'ll be notified when it\'s checked or unchecked.By using itemStateChanged[详细]
2023-01-14 07:18 分类:问答