source: josm/trunk/src/org/openstreetmap/josm/gui/history/TagTableColumnModel.java@ 2181

Last change on this file since 2181 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: 960 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.history;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import javax.swing.table.DefaultTableColumnModel;
7import javax.swing.table.TableColumn;
8
9/**
10 * The {@see TableColumnModel} for the table with the list of tags
11 *
12 */
13public class TagTableColumnModel extends DefaultTableColumnModel{
14 protected void createColumns() {
15 TableColumn col = null;
16
17 TagTableCellRenderer renderer = new TagTableCellRenderer();
18
19 // column 0 - Name
20 col = new TableColumn(0);
21 col.setHeaderValue(tr("Name"));
22 col.setCellRenderer(renderer);
23 addColumn(col);
24
25 // column 1 - Value
26 col = new TableColumn(1);
27 col.setHeaderValue(tr("Value"));
28 col.setCellRenderer(renderer);
29 addColumn(col);
30
31 }
32
33 public TagTableColumnModel() {
34 createColumns();
35 }
36}
Note: See TracBrowser for help on using the repository browser.