001 // License: GPL. For details, see LICENSE file. 002 package org.openstreetmap.josm.gui.history; 003 004 import static org.openstreetmap.josm.tools.I18n.tr; 005 006 import javax.swing.table.DefaultTableColumnModel; 007 import javax.swing.table.TableColumn; 008 009 010 /** 011 * The {@link TableColumnModel} for the table with the list of nodes. 012 * 013 * 014 */ 015 public class NodeListTableColumnModel extends DefaultTableColumnModel { 016 protected void createColumns() { 017 TableColumn col = null; 018 NodeListTableCellRenderer renderer = new NodeListTableCellRenderer(); 019 020 // column 0 - Version 021 col = new TableColumn(0); 022 col.setHeaderValue(tr("Nodes")); 023 col.setCellRenderer(renderer); 024 addColumn(col); 025 } 026 027 public NodeListTableColumnModel() { 028 createColumns(); 029 } 030 }