Changeset 9376 in josm for trunk/src/org
- Timestamp:
- 2016-01-10T00:44:47+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r9369 r9376 6 6 7 7 import java.awt.Component; 8 import java.awt.GraphicsEnvironment; 8 9 import java.awt.Rectangle; 9 10 import java.awt.datatransfer.Transferable; … … 113 114 lstPrimitives.setCellRenderer(new OsmPrimitivRenderer()); 114 115 lstPrimitives.setTransferHandler(new SelectionTransferHandler()); 115 lstPrimitives.setDragEnabled(true); 116 if (!GraphicsEnvironment.isHeadless()) { 117 lstPrimitives.setDragEnabled(true); 118 } 116 119 117 120 lstPrimitives.getSelectionModel().addListSelectionListener(actSelect); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r9368 r9376 6 6 import java.awt.Container; 7 7 import java.awt.Dimension; 8 import java.awt.GraphicsEnvironment; 8 9 import java.awt.KeyboardFocusManager; 9 10 import java.awt.event.ActionEvent; … … 85 86 getActionMap().put("selectPreviousColumnCell", new SelectPreviousColumnCellAction()); 86 87 87 setTransferHandler(new MemberTransferHandler()); 88 setFillsViewportHeight(true); // allow drop on empty table 89 setDragEnabled(true); 90 setDropMode(DropMode.INSERT_ROWS); 88 if (!GraphicsEnvironment.isHeadless()) { 89 setTransferHandler(new MemberTransferHandler()); 90 setFillsViewportHeight(true); // allow drop on empty table 91 setDragEnabled(true); 92 setDropMode(DropMode.INSERT_ROWS); 93 } 91 94 } 92 95
Note:
See TracChangeset
for help on using the changeset viewer.