Changeset 30714 in osm for applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyRelationMemberConflictResolverTable.java
- Timestamp:
- 2014-10-12T12:37:13+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/merge-overlap/src/mergeoverlap/hack/MyRelationMemberConflictResolverTable.java
r30713 r30714 6 6 7 7 import javax.swing.AbstractAction; 8 import javax.swing.JComboBox;9 8 import javax.swing.JComponent; 10 9 import javax.swing.JTable; … … 14 13 import org.openstreetmap.josm.gui.conflict.tags.MultiValueCellEditor; 15 14 import org.openstreetmap.josm.gui.conflict.tags.RelationMemberConflictResolverColumnModel; 15 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 16 16 17 17 public class MyRelationMemberConflictResolverTable extends JTable implements MultiValueCellEditor.NavigationListener { … … 25 25 } 26 26 27 protected void build() { 27 protected final void build() { 28 28 setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); 29 29 setSelectionMode(ListSelectionModel.SINGLE_SELECTION); … … 42 42 getActionMap().put("selectPreviousColumnCell", selectPreviousColumnCellAction); 43 43 44 setRowHeight((int)new JComboBox<>().getPreferredSize().getHeight()); 44 setRowHeight((int)new JosmComboBox<String>().getPreferredSize().getHeight()); 45 45 } 46 46 … … 49 49 * pressing TAB or ENTER. The action alters the standard navigation path from cell to cell: <ul> 50 50 * <li>it jumps over cells in the first column</li> <li>it automatically add a new empty row 51 * when the user leaves the last cell in the table</li> <ul>51 * when the user leaves the last cell in the table</li></ul> 52 52 * 53 53 *
Note:
See TracChangeset
for help on using the changeset viewer.
