source: josm/trunk/src/org/openstreetmap/josm/gui/history/VersionTableColumnModel.java@ 1989

Last change on this file since 1989 was 1709, checked in by Gubaer, 15 years ago

new: history feature implemented

File size: 844 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import javax.swing.table.DefaultTableColumnModel;
5import javax.swing.table.TableCellRenderer;
6import javax.swing.table.TableColumn;
7import static org.openstreetmap.josm.tools.I18n.tr;
8/**
9 * The {@see TableColumnModel} for the table with the list of versions
10 *
11 */
12public class VersionTableColumnModel extends DefaultTableColumnModel {
13 protected void createColumns() {
14 TableColumn col = null;
15 TableCellRenderer renderer = new VersionTableCellRenderer();
16
17 // column 0 - Version
18 col = new TableColumn(0);
19 col.setHeaderValue(tr("Version"));
20 col.setCellRenderer(renderer);
21 addColumn(col);
22 }
23
24 public VersionTableColumnModel() {
25 createColumns();
26 }
27}
Note: See TracBrowser for help on using the repository browser.