Java Code Examples for java.awt.Checkbox#setEnabled()

The following examples show how to use java.awt.Checkbox#setEnabled() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnalyzeSkeleton_.java    From AnalyzeSkeleton with GNU General Public License v3.0 5 votes vote down vote up
/** Disables dialog components that are irrelevant to GUI-based analysis. */
public boolean dialogItemChanged(GenericDialog gd, AWTEvent e)
{
	if ( this.imRef.getRoi() == null && null != gd
			&& null != gd.getCheckboxes() )
	{
		Checkbox roiOption = (Checkbox)gd.getCheckboxes().elementAt(1);
		roiOption.setEnabled(false);
		if (Recorder.record) roiOption.setState(false);
	}
	return true;
}