Changeset 18972 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
- Timestamp:
- 2024-02-09T15:26:06+01:00 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
r18438 r18972 5 5 6 6 import java.awt.BorderLayout; 7 import java.awt.GridBagConstraints; 7 8 import java.awt.GridBagLayout; 8 9 import java.awt.Insets; … … 120 121 this.setLayout(new GridBagLayout()); 121 122 JPanel p2 = new JPanel(new GridBagLayout()); 122 p2.add(cbInput, GBC.std().fill(G BC.HORIZONTAL).insets(0, 20, 5, 5));123 p2.add(cbInput, GBC.std().fill(GridBagConstraints.HORIZONTAL).insets(0, 20, 5, 5)); 123 124 p2.add(btnCheck, GBC.eol().insets(0, 20, 0, 5)); 124 this.add(p2, GBC.eol().fill(G BC.HORIZONTAL));125 this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 125 126 p2 = new JPanel(new GridBagLayout()); 126 p2.add(valStatus, GBC.std().anchor(G BC.WEST).weight(0.0001, 0));127 p2.add(errorsPanel, GBC.eol().fill(G BC.HORIZONTAL));128 this.add(p2, GBC.eol().fill(G BC.HORIZONTAL));127 p2.add(valStatus, GBC.std().anchor(GridBagConstraints.WEST).weight(0.0001, 0)); 128 p2.add(errorsPanel, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 129 this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 129 130 p2 = new JPanel(new GridBagLayout()); 130 131 p2.add(btnInfo, GBC.std().insets(0, 20, 0, 0)); 131 p2.add(GBC.glue(1, 0), GBC.eol().fill(GBC.HORIZONTAL)); 132 this.add(p2, GBC.eol().fill(GBC.HORIZONTAL)); 133 } 134 132 p2.add(GBC.glue(1, 0), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 133 this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 134 } 135 136 /** 137 * Remember the current input 138 */ 135 139 public void rememberHistory() { 136 140 cbInput.addCurrentItemToHistory(); … … 139 143 } 140 144 145 /** 146 * A dialog for the available parameters of the custom projection 147 */ 141 148 public static class ParameterInfoDialog extends ExtendedDialog { 142 149 … … 212 219 } 213 220 PreferencePanel prefPanel = (PreferencePanel) panel; 214 String pref= prefPanel.cbInput.getEditorComponent().getText();221 String savePreferences = prefPanel.cbInput.getEditorComponent().getText(); 215 222 prefPanel.rememberHistory(); 216 return Collections.singleton( pref);223 return Collections.singleton(savePreferences); 217 224 } 218 225
Note:
See TracChangeset
for help on using the changeset viewer.