public void showPreferences() { PreferencePanel preferencePanel = new PreferencePanel(this, getCurrentDocument()); preferencePanel.setLocationRelativeTo(getCurrentDocument()); preferencePanel.setVisible(true); }
private PreferenceScrollPane(PreferencePanel preferencePanel) { super(preferencePanel.getComponent()); this.preferenceSetting = preferencePanel.getTabPreferenceSetting(); }