Changeset 9546 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-20T01:10:10+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
r9484 r9546 4 4 import java.awt.Component; 5 5 import java.awt.Dimension; 6 import java.awt.GraphicsEnvironment; 6 7 import java.awt.Toolkit; 7 8 import java.awt.event.MouseAdapter; … … 166 167 if (prototype != null) { 167 168 setPrototypeDisplayValue(prototype); 168 int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;169 int screenHeight = GraphicsEnvironment.isHeadless() ? 600 : Toolkit.getDefaultToolkit().getScreenSize().height; 169 170 // Compute maximum number of visible items based on the preferred size of the combo box. 170 171 // This assumes that items have the same height as the combo box, which is not granted by the look and feel
Note:
See TracChangeset
for help on using the changeset viewer.