public void actionPerformed (ActionEvent ae) { switch (id) { case SORT_NAMES : try { sheet.setSortingMode(SORTED_BY_NAMES); } catch (PropertyVetoException pve) { //can't happen } break; case UNSORT : try { sheet.setSortingMode(UNSORTED); } catch (PropertyVetoException pve) { //can't happen } break; case INVOKE_POPUP : sheet.showPopup (new Point (0,0)); break; case SHOW_DESCRIPTION : sheet.setDescriptionVisible(!sheet.isDescriptionVisible()); break; case SHOW_HELP : break; default : throw new IllegalArgumentException (Integer.toString(id)); } } public boolean isEnabled() {
public void actionPerformed (ActionEvent ae) { switch (id) { case SORT_NAMES : try { sheet.setSortingMode(SORTED_BY_NAMES); } catch (PropertyVetoException pve) { //can't happen } break; case UNSORT : try { sheet.setSortingMode(UNSORTED); } catch (PropertyVetoException pve) { //can't happen } break; case INVOKE_POPUP : sheet.showPopup (new Point (0,0)); break; case SHOW_DESCRIPTION : sheet.setDescriptionVisible(!sheet.isDescriptionVisible()); break; case SHOW_HELP : break; default : throw new IllegalArgumentException (Integer.toString(id)); } } public boolean isEnabled() {
sheet.setDescriptionVisible(!sheet.isDescriptionVisible());
setDescriptionVisible(showDesc); setMinimumSize(new Dimension(100, 50)); psheet.setEmptyString(NbBundle.getMessage(PropertySheet.class, "CTL_NoProperties")); //NOI18N
setDescriptionVisible (showDesc); setMinimumSize(new Dimension(100, 50)); psheet.setEmptyString(NbBundle.getMessage(
setDescriptionVisible (showDesc); setMinimumSize(new Dimension(100, 50)); psheet.setEmptyString(NbBundle.getMessage(