/** * As per the JPanle superclass setEnabled method. Also calls the setEnabled method of the text * area, load button, clear button and organize button on this panel. * * @param enable Whether to enable or disable this panel and its components. */ public void setEnabled(boolean enable) { super.setEnabled(enable); text_area.setEnabled(enable); load_button.setEnabled(enable); save_button.setEnabled(enable); clear_button.setEnabled(enable); organize_button.setEnabled(enable); }
public void setLocked(boolean b) { locked = b; area1.setEnabled(!b); }