butOkay.setEnabled( editable && client != null );
butOkay.setEnabled( editable );
    public void setEditable( boolean editable ) {        // Set enabled state of all of the option components in the dialog.        for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {            DialogOptionComponent comp =                 (DialogOptionComponent) i.nextElement();            comp.setEditable( editable );        }        // If the panel is editable, the player can commit or reset.        texPass.setEnabled( editable );        butOkay.setEnabled( editable && client != null );        butDefaults.setEnabled( editable );        // Update our data element.        this.editable = editable;    }