diff --git a/src/org/openstreetmap/josm/gui/preferences/display/DrawingPreference.java b/src/org/openstreetmap/josm/gui/preferences/display/DrawingPreference.java
index 409b3cc33..6b89d5042 100644
|
a
|
b
|
public PreferenceSetting createPreferenceSetting() {
|
| 73 | 73 | |
| 74 | 74 | @Override |
| 75 | 75 | public void addGui(PreferenceTabbedPane gui) { |
| | 76 | addOsmPane(gui); |
| | 77 | addGpxPane(gui); |
| | 78 | } |
| | 79 | |
| | 80 | private void addGpxPane(PreferenceTabbedPane gui) { |
| 76 | 81 | gpxPanel = new GPXSettingsPanel(); |
| 77 | 82 | gui.addValidationListener(gpxPanel); |
| 78 | 83 | JPanel panel = gpxPanel; |
| … |
… |
public void addGui(PreferenceTabbedPane gui) {
|
| 81 | 86 | scrollpane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
| 82 | 87 | GuiHelper.setDefaultIncrement(scrollpane); |
| 83 | 88 | gui.getDisplayPreference().addSubTab(this, tr("GPS Points"), scrollpane); |
| 84 | | panel = new JPanel(new GridBagLayout()); |
| | 89 | } |
| | 90 | |
| | 91 | private void addOsmPane(PreferenceTabbedPane gui) { |
| | 92 | JPanel panel = new JPanel(new GridBagLayout()); |
| 85 | 93 | panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); |
| 86 | 94 | |
| 87 | 95 | // directionHint |
| … |
… |
public void addGui(PreferenceTabbedPane gui) {
|
| 200 | 208 | ExpertToggleAction.addVisibilitySwitcher(discardableKeys); |
| 201 | 209 | |
| 202 | 210 | panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH)); |
| 203 | | scrollpane = new JScrollPane(panel); |
| | 211 | JScrollPane scrollpane = new JScrollPane(panel); |
| 204 | 212 | scrollpane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
| 205 | 213 | GuiHelper.setDefaultIncrement(scrollpane); |
| 206 | 214 | gui.getDisplayPreference().addSubTab(this, tr("OSM Data"), scrollpane); |