Changeset 10613 in josm
- Timestamp:
- 2016-07-23T18:56:48+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r10611 r10613 8 8 import java.awt.Dimension; 9 9 import java.awt.Font; 10 import java.awt.GraphicsEnvironment; 10 11 import java.awt.Point; 11 12 import java.awt.Rectangle; … … 1115 1116 super(dataModel); 1116 1117 dataModel.setLayerList(this); 1117 setDragEnabled(true); 1118 if (!GraphicsEnvironment.isHeadless()) { 1119 setDragEnabled(true); 1120 } 1118 1121 setDropMode(DropMode.INSERT_ROWS); 1119 1122 setTransferHandler(new LayerListTransferHandler()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r10611 r10613 71 71 setTransferHandler(new MemberTransferHandler()); 72 72 setFillsViewportHeight(true); // allow drop on empty table 73 setDragEnabled(true); 73 if (!GraphicsEnvironment.isHeadless()) { 74 setDragEnabled(true); 75 } 74 76 setDropMode(DropMode.INSERT_ROWS); 75 77 } -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r10611 r10613 7 7 import java.awt.Container; 8 8 import java.awt.Dimension; 9 import java.awt.GraphicsEnvironment; 9 10 import java.awt.GridBagLayout; 10 11 import java.awt.GridLayout; … … 765 766 }); 766 767 767 selectedList.setDragEnabled(true); 768 if (!GraphicsEnvironment.isHeadless()) { 769 selectedList.setDragEnabled(true); 770 } 768 771 selectedList.setTransferHandler(new SelectedListTransferHandler()); 769 772 … … 792 795 } 793 796 }); 794 actionsTree.setDragEnabled(true); 797 if (!GraphicsEnvironment.isHeadless()) { 798 actionsTree.setDragEnabled(true); 799 } 795 800 actionsTree.getSelectionModel().addTreeSelectionListener(e -> updateEnabledState()); 796 801
Note:
See TracChangeset
for help on using the changeset viewer.