Changeset 12601 in osm for applications/editors/josm/plugins/DirectUpload
- Timestamp:
- 2008-12-27T12:07:12+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java
r11949 r12601 25 25 import javax.swing.JOptionPane; 26 26 import javax.swing.JTextField; 27 import java.awt.Container; 28 import java.awt.GridBagLayout; 29 import java.awt.GridBagConstraints; 27 30 import org.openstreetmap.josm.Main; 28 31 import org.openstreetmap.josm.data.gpx.GpxData; … … 138 141 }); 139 142 140 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 141 getContentPane().setLayout(layout); 142 layout.setHorizontalGroup( 143 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 144 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 145 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) 146 .addGroup(layout.createSequentialGroup() 147 .addGap(29, 29, 29) 148 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) 149 .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 150 .addComponent(PublicTrace) 151 .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 152 .addGap(68, 68, 68) 153 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 154 .addComponent(tagfield, javax.swing.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE) 155 .addGroup(layout.createSequentialGroup() 156 .addComponent(jLabel2) 157 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 124, Short.MAX_VALUE)) 158 .addComponent(descriptionfield, javax.swing.GroupLayout.DEFAULT_SIZE, 379, Short.MAX_VALUE))) 159 .addGroup(layout.createSequentialGroup() 160 .addContainerGap(384, Short.MAX_VALUE) 161 .addComponent(OkButton, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) 162 .addGap(1, 1, 1) 163 .addComponent(CancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)) 164 .addGroup(layout.createSequentialGroup() 165 .addGap(21, 21, 21) 166 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 527, Short.MAX_VALUE))) 167 .addGap(20, 20, 20)) 168 ); 169 layout.setVerticalGroup( 170 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 171 .addGroup(layout.createSequentialGroup() 172 .addContainerGap() 173 .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) 174 .addGap(34, 34, 34) 175 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 176 .addComponent(jLabel1) 177 .addComponent(descriptionfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 178 .addGap(35, 35, 35) 179 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 180 .addComponent(jLabel3) 181 .addComponent(tagfield, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 182 .addGap(56, 56, 56) 183 .addComponent(PublicTrace) 184 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 185 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE) 186 .addGap(18, 18, 18) 187 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 188 .addComponent(OkButton) 189 .addComponent(CancelButton)) 190 .addContainerGap()) 191 ); 143 144 145 Container contentPane = getContentPane(); 146 contentPane.setLayout(new GridBagLayout()); 147 GridBagConstraints c = new GridBagConstraints(); 148 149 c.gridx = 0; 150 c.gridy = 0; 151 c.gridwidth = 2; 152 c.fill = 1; 153 contentPane.add(OutputDisplay, c); 154 155 c.gridwidth = 1; 156 c.gridy = 1; 157 contentPane.add(jLabel3, c); 158 c.gridx = 1; 159 contentPane.add(tagfield, c); 160 161 c.gridy = 2; c.gridx = 0; 162 contentPane.add(jLabel1, c); 163 c.gridx = 1; 164 contentPane.add(descriptionfield, c); 165 166 c.gridy = 3; c.gridx = 0; 167 contentPane.add(jLabel2, c); 168 c.gridx = 1; 169 contentPane.add(PublicTrace, c); 170 171 c.gridy = 4; c.gridx = 0; 172 contentPane.add(CancelButton, c); 173 c.gridx = 1; 174 contentPane.add(OkButton, c); 192 175 193 176 pack();
Note:
See TracChangeset
for help on using the changeset viewer.