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.setSortingMode(SORTED_BY_NAMES); } catch (PropertyVetoException pve) { sheet.setSortingMode(UNSORTED); } catch (PropertyVetoException pve) {
setSortingMode(PropUtils.getSavedSortOrder()); } catch (PropertyVetoException e) {
setSortingMode (PropUtils.getSavedSortOrder()); } catch (PropertyVetoException e) {
setSortingMode (PropUtils.getSavedSortOrder()); } catch (PropertyVetoException e) {