@Override public void actionPerformed(ActionEvent e) { final PreferenceDialog p = new PreferenceDialog(Main.parent); p.getTabbedPane().getShortcutPreference().setDefaultFilter(act.getDisplayName()); p.selectPreferencesTabByName("shortcuts"); p.setVisible(true); // refresh toolbar to try using changed shortcuts without restart Main.toolbar.refreshToolbarControl(); }
@Override public void actionPerformed(ActionEvent e) { final PreferenceDialog p = new PreferenceDialog(Main.parent); p.selectPreferencesTabByName("toolbar"); p.setVisible(true); }