Changeset 9754 in josm for trunk/src/org
- Timestamp:
- 2016-02-07T19:03:59+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r9751 r9754 30 30 import org.openstreetmap.josm.tools.GBC; 31 31 32 /** 33 * Display and edit layer name and file path in a <code>JTable</code>. 34 * 35 * Note: Do not use the same object both as <code>TableCellRenderer</code> and 36 * <code>TableCellEditor</code> - this can mess up the current editor component 37 * by subsequent calls to the renderer (#12462). 38 */ 32 39 class LayerNameAndFilePathTableCell extends JPanel implements TableCellRenderer, TableCellEditor { 33 40 private static final Color colorError = new Color(255, 197, 197); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersTableColumnModel.java
r9751 r9754 86 86 87 87 // column 0 - layer name, save path editor 88 LayerNameAndFilePathTableCell lnafptc = new LayerNameAndFilePathTableCell(); 88 LayerNameAndFilePathTableCell lnfpRenderer = new LayerNameAndFilePathTableCell(); 89 LayerNameAndFilePathTableCell lnfpEditor = new LayerNameAndFilePathTableCell(); 89 90 col = new TableColumn(0); // keep in sync with SaveLayersModel#columnFilename 90 91 col.setHeaderValue(tr("Layer Name and File Path")); 91 92 col.setResizable(true); 92 col.setCellRenderer(ln afptc);93 col.setCellEditor(ln afptc);93 col.setCellRenderer(lnfpRenderer); 94 col.setCellEditor(lnfpEditor); 94 95 col.setPreferredWidth(324); 95 96 addColumn(col);
Note:
See TracChangeset
for help on using the changeset viewer.