Changeset 1884 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
- Timestamp:
- 2009-08-02T19:13:42+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r1868 r1884 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.event.ActionEvent; … … 25 27 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener; 26 28 27 import static org.openstreetmap.josm.tools.I18n.tr;28 29 29 public class MemberTable extends JTable implements IMemberModelListener { 30 30 … … 39 39 /** 40 40 * constructor 41 * 41 * 42 42 * @param model 43 43 * @param columnModel … … 75 75 * adjusts the width of the columns for the tag name and the tag value to the width of the 76 76 * scroll panes viewport. 77 * 77 * 78 78 * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected 79 * 79 * 80 80 * @param scrollPaneWidth the width of the scroll panes viewport 81 81 */ … … 104 104 * <li>it jumps over cells in the first column</li> <li>it automatically add a new empty row 105 105 * when the user leaves the last cell in the table</li> <ul> 106 * 107 * 106 * 107 * 108 108 */ 109 109 class SelectNextColumnCellAction extends AbstractAction { … … 132 132 * Action to be run when the user navigates to the previous cell in the table, for instance by 133 133 * pressing Shift-TAB 134 * 134 * 135 135 */ 136 136 class SelectPreviousColumnCellAction extends AbstractAction { … … 143 143 } 144 144 145 if (col == 0 && row == 0) {145 if (col <= 0 && row <= 0) { 146 146 // change nothing 147 147 } else if (row > 0) { … … 166 166 /** 167 167 * Replies the popup menu for this table 168 * 168 * 169 169 * @return the popup menu 170 170 */
Note:
See TracChangeset
for help on using the changeset viewer.