Issue with JCheckBox and JOptionPane
Hey I am having an issue with using a JOptionPane with a JCheckBox. I want to click a JCheckbox that fires input dialog using JOptionPane. What happens is when The JOptionpane Opens, it will ask for input but the checkbox will not stay checked but it will perform the action. I can keep clicking and entering data but will never stay Checked. I then tried adding JCheckBox.setSelected(true); then what happens now is the JOptionPane will pop up twice but this time the Checkbox will actually become Selected and only accept the input from first JOptionPane not the second.