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

Last change on this file since 9453 was 7822, checked in by Don-vip, 9 years ago

fix #10863 - typo in history browser

  • Property svn:eol-style set to native
File size: 1.0 KB
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 {@link javax.swing.table.TableColumnModel} for the table with the list of tags
11 * @since 1709
12 */
13public class TagTableColumnModel extends DefaultTableColumnModel {
14 protected void createColumns() {
15 TableColumn col = null;
16
17 TagTableCellRenderer renderer = new TagTableCellRenderer();
18
19 // column 0 - Key
20 col = new TableColumn(0);
21 col.setHeaderValue(tr("Key"));
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 /**
34 * Constructs a new {@code TagTableColumnModel}.
35 */
36 public TagTableColumnModel() {
37 createColumns();
38 }
39}
Note: See TracBrowser for help on using the repository browser.