source: josm/trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTable.java@ 5299

Last change on this file since 5299 was 5297, checked in by Don-vip, 12 years ago

fix #4493, fix #7750: conflict dialog, nodes and members tab: allow selection via double-click, allow zoom via contexual menu, plus various fix in EDT violations

File size: 805 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.conflict.pair.nodes;
3
4import javax.swing.JTable;
5import javax.swing.ListSelectionModel;
6
7import org.openstreetmap.josm.actions.ZoomToAction;
8import org.openstreetmap.josm.gui.widgets.OsmPrimitivesTable;
9import org.openstreetmap.josm.gui.widgets.OsmPrimitivesTableModel;
10
11public class NodeListTable extends OsmPrimitivesTable {
12
13 public NodeListTable(String name, OsmPrimitivesTableModel dm, ListSelectionModel sm) {
14 super(dm, new NodeListColumnModel(new NodeListTableCellRenderer()), sm);
15 setName(name);
16 setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
17 }
18
19 @Override
20 protected ZoomToAction buildZoomToAction() {
21 return new ZoomToAction(this);
22 }
23}
Note: See TracBrowser for help on using the repository browser.