boolean (boolean absolute, boolean relative) { Object selectedStyle = myLabelIndentStyle.getSelectedItem(); if (absolute) { return selectedStyle != LabelIndentStyle.ABSOLUTE; } else if (relative) { return selectedStyle != LabelIndentStyle.RELATIVE; } else { return selectedStyle != LabelIndentStyle.RELATIVE_REVERSED; } }