//I wired my nunchuck buttons backwards so we'll detect and accommodate
boolean initialInvert = System.getProperty("user.name").equalsIgnoreCase("catix") ? true : false;
JCheckBox chckbxNewCheckBox = new JCheckBox("", initialInvert);
add(chckbxNewCheckBox, "cell 1 3");
Configuration.IS_INVERTED = chckbxNewCheckBox.isSelected();
chckbxNewCheckBox.addItemListener(
new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
Configuration.IS_INVERTED = (e.getStateChange() == ItemEvent.SELECTED);
}