public void itemStateChanged(ItemEvent ie) { if (ie.getSource().equals(cheRoadsAutoExit)) { // Set the new value for the option, and refrest the board. board.setRoadsAutoExit(cheRoadsAutoExit.isSelected()); bv.updateBoard(); repaintWorkingHex(); } }
result.setRoadsAutoExit(roadsAutoExit);