Changeset 397 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
- Timestamp:
- 2007-10-16T23:18:46+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
r298 r397 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Color; 7 import java.awt.GridBagLayout; 8 9 import javax.swing.BorderFactory; 6 10 import javax.swing.JComboBox; 7 11 import javax.swing.JLabel; 12 import javax.swing.JPanel; 8 13 9 14 import org.openstreetmap.josm.Main; … … 26 31 } 27 32 projectionCombo.addActionListener(gui.requireRestartAction); 28 29 gui.map.add(new JLabel(tr("Projection method")), GBC.std()); 30 gui.map.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); 31 gui.map.add(projectionCombo, GBC.eop().fill(GBC.HORIZONTAL).insets(0,0,0,5)); 33 34 JPanel projPanel = new JPanel(); 35 projPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.gray), tr("Map Projection"))); 36 projPanel.setLayout(new GridBagLayout()); 37 projPanel.add(new JLabel(tr("Projection method")), GBC.std().insets(5,5,0,5)); 38 projPanel.add(GBC.glue(5,0), GBC.std().fill(GBC.HORIZONTAL)); 39 projPanel.add(projectionCombo, GBC.eop().fill(GBC.HORIZONTAL).insets(0,5,5,5)); 40 gui.map.add(projPanel, GBC.eol().insets(0,0,0,10).fill(GBC.HORIZONTAL)); 32 41 } 33 42
Note:
See TracChangeset
for help on using the changeset viewer.
