Changeset 9833 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-02-19T16:26:48+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r9576 r9833 392 392 if (placeContentInScrollPane) { 393 393 JScrollPane pane = new JScrollPane(cp); 394 GuiHelper.setDefaultIncrement(pane); 394 395 pane.setBorder(null); 395 396 setContentPane(pane); -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r9778 r9833 175 175 InputMapUtils.addSpacebarAction(tblStyles, onoffAction); 176 176 177 JScrollPane sp = new JScrollPane(p); 178 GuiHelper.setDefaultIncrement(sp); 179 createLayout(sp, false, Arrays.asList( 177 createLayout(p, true, Arrays.asList( 180 178 new SideButton(onoffAction, false), 181 179 new SideButton(upAction, false), -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r9795 r9833 46 46 import javax.swing.JScrollPane; 47 47 import javax.swing.JToggleButton; 48 import javax.swing.Scrollable; 48 49 import javax.swing.SwingUtilities; 49 50 … … 64 65 import org.openstreetmap.josm.gui.preferences.SubPreferenceSetting; 65 66 import org.openstreetmap.josm.gui.preferences.TabPreferenceSetting; 67 import org.openstreetmap.josm.gui.util.GuiHelper; 66 68 import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher; 67 69 import org.openstreetmap.josm.tools.Destroyable; … … 874 876 Collection<SideButton>... nextButtons) { 875 877 if (scroll) { 876 data = new JScrollPane(data); 878 JScrollPane sp = new JScrollPane(data); 879 if (!(data instanceof Scrollable)) { 880 GuiHelper.setDefaultIncrement(sp); 881 } 882 data = sp; 877 883 } 878 884 LinkedList<Collection<SideButton>> buttons = new LinkedList<>(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r9831 r9833 293 293 selectSth.setPreferredSize(scrollPane.getSize()); 294 294 presets.setSize(scrollPane.getSize()); 295 GuiHelper.setDefaultIncrement(scrollPane);296 295 297 296 editHelper.loadTagsIfNeeded();
Note:
See TracChangeset
for help on using the changeset viewer.