Changeset 9546 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2016-01-20T01:10:10+01:00 (8 years ago)
Author:
Don-vip
Message:

add more unit tests, fix packages, rename manual functional unit tests (with a main() method) to *TestFT.java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java

    r9484 r9546  
    44import java.awt.Component;
    55import java.awt.Dimension;
     6import java.awt.GraphicsEnvironment;
    67import java.awt.Toolkit;
    78import java.awt.event.MouseAdapter;
     
    166167        if (prototype != null) {
    167168            setPrototypeDisplayValue(prototype);
    168             int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
     169            int screenHeight = GraphicsEnvironment.isHeadless() ? 600 : Toolkit.getDefaultToolkit().getScreenSize().height;
    169170            // Compute maximum number of visible items based on the preferred size of the combo box.
    170171            // 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.