Last change
on this file since 2250 was 2017, checked in by Gubaer, 15 years ago |
removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports
|
File size:
846 bytes
|
Rev | Line | |
---|
[1709] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.gui.history;
|
---|
| 3 |
|
---|
[2017] | 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 5 |
|
---|
[1709] | 6 | import javax.swing.table.DefaultTableColumnModel;
|
---|
| 7 | import javax.swing.table.TableCellRenderer;
|
---|
| 8 | import javax.swing.table.TableColumn;
|
---|
| 9 | /**
|
---|
| 10 | * The {@see TableColumnModel} for the table with the list of versions
|
---|
| 11 | *
|
---|
| 12 | */
|
---|
| 13 | public class VersionTableColumnModel extends DefaultTableColumnModel {
|
---|
| 14 | protected void createColumns() {
|
---|
| 15 | TableColumn col = null;
|
---|
| 16 | TableCellRenderer renderer = new VersionTableCellRenderer();
|
---|
| 17 |
|
---|
| 18 | // column 0 - Version
|
---|
| 19 | col = new TableColumn(0);
|
---|
| 20 | col.setHeaderValue(tr("Version"));
|
---|
| 21 | col.setCellRenderer(renderer);
|
---|
| 22 | addColumn(col);
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | public VersionTableColumnModel() {
|
---|
| 26 | createColumns();
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.