Changeset 17298 in josm
- Timestamp:
- 2020-11-06T07:14:35+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r17293 r17298 16 16 import javax.swing.JLabel; 17 17 import javax.swing.JList; 18 import javax.swing.JScrollPane; 18 19 import javax.swing.JSeparator; 19 20 import javax.swing.JSpinner; … … 30 31 import org.openstreetmap.josm.gui.NavigatableComponent; 31 32 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 32 import org.openstreetmap.josm.gui.preferences.DefaultTabPreferenceSetting; 33 33 34 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 34 35 import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; 35 36 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; 37 import org.openstreetmap.josm.gui.preferences.SubPreferenceSetting; 38 import org.openstreetmap.josm.gui.preferences.TabPreferenceSetting; 36 39 import org.openstreetmap.josm.gui.widgets.FileChooserManager; 37 40 import org.openstreetmap.josm.gui.widgets.JosmComboBox; … … 46 49 * Look-and-feel preferences. 47 50 */ 48 public class LafPreference extends DefaultTabPreferenceSetting {51 public class LafPreference implements SubPreferenceSetting { 49 52 50 53 /** … … 72 75 return new LafPreference(); 73 76 } 74 }75 76 LafPreference() {77 super(/* ICON(preferences/) */ "display", tr("Look and Feel"), tr("Change the Look and Feel of the program"));78 77 } 79 78 … … 218 217 panel.add(spinZoomRatio, GBC.eol()); 219 218 220 panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));221 222 createPreferenceTabWithScrollPane(gui, panel);219 JScrollPane scrollpane = panel.getVerticalScrollPane(); 220 scrollpane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); 221 gui.getDisplayPreference().addSubTab(this, tr("Look and Feel"), scrollpane); 223 222 } 224 223 … … 248 247 } 249 248 249 @Override 250 public TabPreferenceSetting getTabPreferenceSetting(final PreferenceTabbedPane gui) { 251 return gui.getDisplayPreference(); 252 } 253 250 254 }
Note:
See TracChangeset
for help on using the changeset viewer.