Changeset 5226 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
- Timestamp:
- 2012-05-09T21:29:17+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences/projection
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r5223 r5226 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 package org.openstreetmap.josm.gui.preferences. map;2 package org.openstreetmap.josm.gui.preferences.projection; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Component; 6 7 import java.awt.GridBagLayout; 7 8 import java.awt.event.ActionEvent; … … 85 86 private JPanel projSubPrefPanelWrapper = new JPanel(new GridBagLayout()); 86 87 88 private JLabel projectionCodeLabel; 89 private Component projectionCodeGlue; 87 90 private JLabel projectionCode = new JLabel(); 88 91 private JLabel bounds = new JLabel(); … … 122 125 projPanel.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); 123 126 projPanel.add(projectionCombo, GBC.eop().fill(GBC.HORIZONTAL).insets(0,5,5,5)); 124 projPanel.add( new JLabel(tr("Projection code")), GBC.std().insets(25,5,0,5));125 projPanel.add( GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL));127 projPanel.add(projectionCodeLabel = new JLabel(tr("Projection code")), GBC.std().insets(25,5,0,5)); 128 projPanel.add(projectionCodeGlue = GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); 126 129 projPanel.add(projectionCode, GBC.eop().fill(GBC.HORIZONTAL).insets(0,5,5,5)); 127 130 projPanel.add(new JLabel(tr("Bounds")), GBC.std().insets(25,5,0,5)); … … 152 155 CoordinateFormat cf = CoordinateFormat.getDefaultFormat(); 153 156 bounds.setText(b.getMin().latToString(cf)+"; "+b.getMin().lonToString(cf)+" : "+b.getMax().latToString(cf)+"; "+b.getMax().lonToString(cf)); 157 boolean hideCode = proj instanceof SubPrefsOptions && !((SubPrefsOptions) proj).showProjectionCode(); 158 projectionCodeLabel.setVisible(!hideCode); 159 projectionCodeGlue.setVisible(!hideCode); 160 projectionCode.setVisible(!hideCode); 154 161 } 155 162
Note:
See TracChangeset
for help on using the changeset viewer.