Changeset 15366 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-09-19T17:41:43+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r15258 r15366 223 223 layerList.getColumnModel().getColumn(3).setCellRenderer(new LayerVisibleCellRenderer()); 224 224 layerList.getColumnModel().getColumn(3).setCellEditor(new LayerVisibleCellEditor(new LayerVisibleCheckBox())); 225 layerList.getColumnModel().getColumn(3).setMaxWidth( 16);226 layerList.getColumnModel().getColumn(3).setPreferredWidth( 16);225 layerList.getColumnModel().getColumn(3).setMaxWidth(48); 226 layerList.getColumnModel().getColumn(3).setPreferredWidth(48); 227 227 layerList.getColumnModel().getColumn(3).setResizable(false); 228 228 … … 449 449 boolean visible = layer.isVisible(); 450 450 setSelected(visible); 451 List<Layer> layers = MainApplication.getLayerManager().getLayers(); 452 int num = layers.size() - layers.indexOf(layer); 453 setText(String.format("%s[%d]", num < 10 ? " " : "", num)); 451 454 setTranslucent(layer.getOpacity() < 1.0); 452 455 setToolTipText(visible ?
Note:
See TracChangeset
for help on using the changeset viewer.