Changeset 17865 in josm for trunk/src/org


Ignore:
Timestamp:
2021-05-06T18:03:12+02:00 (4 years ago)
Author:
simon04
Message:

fix #20204 - Preferences dialog inconsistent scroll pane borders (patch by DevCharly)

Location:
trunk/src/org/openstreetmap/josm/gui/preferences
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java

    r17734 r17865  
    261261            this.preferenceSetting = preferencePanel.getTabPreferenceSetting();
    262262            GuiHelper.setDefaultIncrement(this);
     263            setBorder(BorderFactory.createEmptyBorder());
    263264        }
    264265
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java

    r17768 r17865  
    375375        panel.add(colorFilter, GBC.eol().insets(0, 0, 0, 5).fill(HORIZONTAL));
    376376        JScrollPane scrollpane = new JScrollPane(colors);
    377         scrollpane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    378377        panel.add(scrollpane, GBC.eol().fill(BOTH));
    379378        JPanel buttonPanel = new JPanel(new GridBagLayout());
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r17314 r17865  
    9898
    9999        p.add(new JPanel(), GBC.eol().fill(BOTH));
    100         return GuiHelper.setDefaultIncrement(new JScrollPane(p));
     100        JScrollPane scrollPane = new JScrollPane(p);
     101        scrollPane.setBorder(BorderFactory.createEmptyBorder());
     102        return GuiHelper.setDefaultIncrement(scrollPane);
    101103    }
    102104
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java

    r17648 r17865  
    2121import javax.swing.JOptionPane;
    2222import javax.swing.JPanel;
     23import javax.swing.JScrollPane;
    2324import javax.swing.JSeparator;
    2425
     
    370371        unitsCombo.setSelectedItem(SystemOfMeasurement.getSystemOfMeasurement());
    371372
    372         projPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
    373373        projPanel.add(new JLabel(tr("Projection method")), GBC.std().insets(5, 5, 0, 5));
    374374        projPanel.add(GBC.glue(5, 0), GBC.std().fill(GBC.HORIZONTAL));
     
    414414        projPanel.add(GBC.glue(1, 1), GBC.std().fill(GBC.HORIZONTAL).weight(1.0, 1.0));
    415415
    416         gui.createPreferenceTab(this).add(projPanel.getVerticalScrollPane(), GBC.std().fill());
     416        JScrollPane scrollPane = projPanel.getVerticalScrollPane();
     417        scrollPane.setBorder(BorderFactory.createEmptyBorder());
     418        gui.createPreferenceTab(this).add(scrollPane, GBC.std().fill());
    417419
    418420        selectedProjectionChanged(pc);
  • trunk/src/org/openstreetmap/josm/gui/preferences/validator/ValidatorTestsPreference.java

    r12846 r17865  
    1515import javax.swing.JLabel;
    1616import javax.swing.JPanel;
     17import javax.swing.JScrollPane;
    1718
    1819import org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper;
     
    9091        }
    9192
     93        JScrollPane scrollPane = GuiHelper.embedInVerticalScrollPane(testPanel);
     94        scrollPane.setBorder(BorderFactory.createEmptyBorder());
    9295        gui.getValidatorPreference().addSubTab(this, tr("Tests"),
    93                 GuiHelper.embedInVerticalScrollPane(testPanel),
     96                scrollPane,
    9497                tr("Choose tests to enable"));
    9598    }
Note: See TracChangeset for help on using the changeset viewer.