/** Disables the fields checkboxes. */
 public void disableField() {
   for (ShipCheckBox[] x : checkboxes) {
     for (ShipCheckBox y : x) {
       y.setEnabled(false);
     }
   }
 }
 /**
  * Enables the fields checkboxes.
  *
  * @param readyMode If in readymode, all checkboxes should be enabled, otherwise only the
  *     unselected checkboxes should be enabled.
  */
 public void enableField(boolean readyMode) {
   for (ShipCheckBox[] x : checkboxes) {
     for (ShipCheckBox y : x) {
       if (readyMode || !y.isSelected()) y.setEnabled(true);
     }
   }
 }
 /** Resets the field. Sets all checkboxes back to their initial state, unselected and no icons. */
 public void reset() {
   for (ShipCheckBox[] x : checkboxes) {
     for (ShipCheckBox y : x) {
       y.setSelected(false);
       y.setEnabled(false);
       y.setDisabledIcon(null);
       y.setDisabledSelectedIcon(null);
     }
   }
 }