Revision 30840 trunk/extensions/extGraph/src/org/gvsig/graph/gui/OdMatrixControlPanel.java
OdMatrixControlPanel.java | ||
---|---|---|
126 | 126 |
|
127 | 127 |
jLblToleranceUnits = new JLabel(); |
128 | 128 |
jLblToleranceUnits.setBounds(new Rectangle(265, 118, 135, 20)); |
129 |
jLblToleranceUnits.setText("meters");
|
|
129 |
jLblToleranceUnits.setText(_T("meters"));
|
|
130 | 130 |
jLblTolerance = new JLabel(); |
131 | 131 |
jLblTolerance.setBounds(new Rectangle(17, 118, 135, 20)); |
132 |
jLblTolerance.setText("Tolerance:");
|
|
132 |
jLblTolerance.setText(_T("Tolerance") + ":");
|
|
133 | 133 |
jLblTolerance.setHorizontalAlignment(SwingConstants.RIGHT); |
134 | 134 |
this.setLayout(null); |
135 | 135 |
this.setSize(new Dimension(499, 350)); |
... | ... | |
149 | 149 |
|
150 | 150 |
jPanel1.setLayout(null); |
151 | 151 |
jPanel1.setBorder(javax.swing.BorderFactory |
152 |
.createTitledBorder("Options"));
|
|
152 |
.createTitledBorder(_T("Options")));
|
|
153 | 153 |
|
154 | 154 |
jPanel1.setBounds(new Rectangle(14, 172, 468, 122)); |
155 | 155 |
jPanel1.add(cboFileFormat, null); |
... | ... | |
174 | 174 |
}); |
175 | 175 |
jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
176 | 176 |
jLabel5.setBounds(new Rectangle(17, 22, 134, 16)); |
177 |
jLabel5.setText("File Format:");
|
|
177 |
jLabel5.setText(_T("File_Format") + ":");
|
|
178 | 178 |
|
179 | 179 |
jPanel2.setLayout(null); |
180 | 180 |
|
181 | 181 |
// jPanel2.setLayout(new GridBagLayout(jPanel2, BoxLayout.Y_AXIS)); |
182 | 182 |
jPanel2.setBorder(javax.swing.BorderFactory |
183 |
.createTitledBorder("Parameters"));
|
|
183 |
.createTitledBorder(_T("Parameters")));
|
|
184 | 184 |
|
185 | 185 |
jPanel2.setBounds(new Rectangle(14, 13, 468, 144)); |
186 | 186 |
|
... | ... | |
188 | 188 |
jLblLayerOrigins |
189 | 189 |
.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
190 | 190 |
jLblLayerOrigins.setBounds(new Rectangle(17, 33, 135, 20)); |
191 |
jLblLayerOrigins.setText("Layer Origins:");
|
|
191 |
jLblLayerOrigins.setText(_T("Layer_Origins") + ":");
|
|
192 | 192 |
|
193 | 193 |
cboLayerDestinations.setBounds(new Rectangle(158, 61, 259, 22)); |
194 | 194 |
jLblLayerDestinations |
195 | 195 |
.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
196 | 196 |
jLblLayerDestinations.setBounds(new Rectangle(17, 59, 135, 20)); |
197 |
jLblLayerDestinations.setText("Layer Destinations:");
|
|
197 |
jLblLayerDestinations.setText(_T("Layer_Destinations") + ":");
|
|
198 | 198 |
|
199 | 199 |
jLblFile.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
200 | 200 |
jLblFile.setBounds(new Rectangle(17, 90, 135, 20)); |
201 |
jLblFile.setText("Generated File:");
|
|
201 |
jLblFile.setText(_T("Generated_File") + ":");
|
|
202 | 202 |
|
203 | 203 |
txtGeneratedFile.setText(""); |
204 | 204 |
|
... | ... | |
228 | 228 |
|
229 | 229 |
} |
230 | 230 |
}); |
231 |
btnOk.setText("OK");
|
|
231 |
btnOk.setText(_T("OK"));
|
|
232 | 232 |
btnOk.setBounds(new Rectangle(107, 305, 136, 26)); |
233 | 233 |
btnOk.addActionListener(new java.awt.event.ActionListener() { |
234 | 234 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
... | ... | |
236 | 236 |
} |
237 | 237 |
}); |
238 | 238 |
|
239 |
btnCancel.setText("Cancel");
|
|
239 |
btnCancel.setText(_T("Cancel"));
|
|
240 | 240 |
btnCancel.setBounds(new Rectangle(257, 305, 136, 26)); |
241 | 241 |
jPanel2.add(jLblLayerOrigins, null); |
242 | 242 |
jPanel2.add(cboLayerOrigins, null); |
... | ... | |
348 | 348 |
wi = new WindowInfo(WindowInfo.MODALDIALOG); |
349 | 349 |
wi.setWidth((int) this.getPreferredSize().getWidth()); |
350 | 350 |
wi.setHeight((int) this.getPreferredSize().getHeight()); |
351 |
wi.setTitle(PluginServices.getText(this, "odmatrix_control_panel"));
|
|
351 |
wi.setTitle(_T("odmatrix_control_panel"));
|
|
352 | 352 |
} |
353 | 353 |
return wi; |
354 | 354 |
} |
... | ... | |
360 | 360 |
public double getTolerance() { |
361 | 361 |
return Double.parseDouble(txtTolerance.getText()); |
362 | 362 |
} |
363 |
|
|
364 |
private String _T(String str) { |
|
365 |
return PluginServices.getText(this, str); |
|
366 |
} |
|
363 | 367 |
|
364 | 368 |
} // @jve:decl-index=0:visual-constraint="10,10" |
Also available in: Unified diff