001: /*
002: * JRXMLDataSourceConnectionEditor.java
003: *
004: * Created on March 27, 2007, 11:57 AM
005: */
006:
007: package it.businesslogic.ireport.plugin.jrx;
008:
009: import it.businesslogic.ireport.IReportConnection;
010: import it.businesslogic.ireport.IReportConnectionEditor;
011: import it.businesslogic.ireport.gui.FieldPatternDialog;
012: import it.businesslogic.ireport.gui.MainFrame;
013: import it.businesslogic.ireport.gui.locale.LocaleSelectorDialog;
014: import it.businesslogic.ireport.gui.locale.TimeZoneDialog;
015: import it.businesslogic.ireport.util.I18n;
016: import it.businesslogic.ireport.util.Misc;
017: import java.util.Locale;
018: import java.util.TimeZone;
019: import javax.swing.JDialog;
020: import javax.swing.JOptionPane;
021: import javax.swing.SwingUtilities;
022:
023: /**
024: *
025: * @author gtoffoli
026: */
027: public class JRXMLDataSourceConnectionEditor extends javax.swing.JPanel
028: implements IReportConnectionEditor {
029:
030: private IReportConnection iReportConnection = null;
031: private boolean init = false;
032: private Locale tmpXMLLocale = null;
033: private TimeZone tmpXMLTimeZone = null;
034:
035: /** Creates new form JRXMLDataSourceConnectionEditor */
036: public JRXMLDataSourceConnectionEditor() {
037: initComponents();
038: applyI18n();
039: }
040:
041: /** This method is called from within the constructor to
042: * initialize the form.
043: * WARNING: Do NOT modify this code. The content of this method is
044: * always regenerated by the Form Editor.
045: */
046: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
047: private void initComponents() {
048: java.awt.GridBagConstraints gridBagConstraints;
049:
050: buttonGroup1 = new javax.swing.ButtonGroup();
051: jPanelXML = new javax.swing.JPanel();
052: jPanel1 = new javax.swing.JPanel();
053: jLabel9 = new javax.swing.JLabel();
054: jTextFieldXMLFile = new javax.swing.JTextField();
055: jSeparator9 = new javax.swing.JSeparator();
056: jLabelXMLDatePattern = new javax.swing.JLabel();
057: jTextFieldXMLDatePattern = new javax.swing.JTextField();
058: jButtonXMLDatePattern = new javax.swing.JButton();
059: jLabelXMLNumberPattern = new javax.swing.JLabel();
060: jTextFieldXMLNumberPattern = new javax.swing.JTextField();
061: jButtonXMLNumberPattern = new javax.swing.JButton();
062: jPanel3 = new javax.swing.JPanel();
063: jLabelXMLLocale = new javax.swing.JLabel();
064: jTextFieldXMLLocaleValue = new javax.swing.JTextField();
065: jLabelXMLTimeZone = new javax.swing.JLabel();
066: jButtonXMLLocale = new javax.swing.JButton();
067: jTextFieldXMLTimeZoneValue = new javax.swing.JTextField();
068: jButtonXMLTimeZone = new javax.swing.JButton();
069:
070: setLayout(new java.awt.BorderLayout());
071:
072: jPanelXML.setLayout(new java.awt.GridBagLayout());
073:
074: jPanelXML.setPreferredSize(new java.awt.Dimension(1, 30));
075: jPanel1.setLayout(new java.awt.GridBagLayout());
076:
077: jLabel9.setText("XML URL");
078: jLabel9.setMinimumSize(new java.awt.Dimension(20, 14));
079: jLabel9.setPreferredSize(null);
080: gridBagConstraints = new java.awt.GridBagConstraints();
081: gridBagConstraints.gridx = 0;
082: gridBagConstraints.gridy = 0;
083: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
084: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
085: jPanel1.add(jLabel9, gridBagConstraints);
086:
087: gridBagConstraints = new java.awt.GridBagConstraints();
088: gridBagConstraints.gridx = 1;
089: gridBagConstraints.gridy = 0;
090: gridBagConstraints.gridwidth = 2;
091: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
092: gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
093: gridBagConstraints.weightx = 1.0;
094: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
095: jPanel1.add(jTextFieldXMLFile, gridBagConstraints);
096:
097: gridBagConstraints = new java.awt.GridBagConstraints();
098: gridBagConstraints.gridwidth = 3;
099: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
100: gridBagConstraints.weightx = 1.0;
101: jPanelXML.add(jPanel1, gridBagConstraints);
102:
103: jSeparator9.setPreferredSize(new java.awt.Dimension(2, 2));
104: gridBagConstraints = new java.awt.GridBagConstraints();
105: gridBagConstraints.gridx = 0;
106: gridBagConstraints.gridwidth = 4;
107: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
108: gridBagConstraints.insets = new java.awt.Insets(8, 4, 8, 4);
109: jPanelXML.add(jSeparator9, gridBagConstraints);
110:
111: jLabelXMLDatePattern.setText("Date pattern");
112: jLabelXMLDatePattern.setPreferredSize(null);
113: gridBagConstraints = new java.awt.GridBagConstraints();
114: gridBagConstraints.gridx = 0;
115: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
116: gridBagConstraints.ipadx = 24;
117: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
118: jPanelXML.add(jLabelXMLDatePattern, gridBagConstraints);
119:
120: gridBagConstraints = new java.awt.GridBagConstraints();
121: gridBagConstraints.gridx = 1;
122: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
123: gridBagConstraints.ipadx = 232;
124: gridBagConstraints.ipady = 1;
125: gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
126: gridBagConstraints.weightx = 1.0;
127: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
128: jPanelXML.add(jTextFieldXMLDatePattern, gridBagConstraints);
129:
130: jButtonXMLDatePattern.setText("Create");
131: jButtonXMLDatePattern
132: .setMargin(new java.awt.Insets(2, 4, 2, 4));
133: jButtonXMLDatePattern.setMaximumSize(new java.awt.Dimension(
134: 100, 25));
135: jButtonXMLDatePattern.setMinimumSize(new java.awt.Dimension(70,
136: 25));
137: jButtonXMLDatePattern.setPreferredSize(new java.awt.Dimension(
138: 70, 25));
139: jButtonXMLDatePattern
140: .addActionListener(new java.awt.event.ActionListener() {
141: public void actionPerformed(
142: java.awt.event.ActionEvent evt) {
143: jButton2ActionPerformed1(evt);
144: }
145: });
146:
147: gridBagConstraints = new java.awt.GridBagConstraints();
148: gridBagConstraints.gridx = 2;
149: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
150: gridBagConstraints.ipadx = 21;
151: gridBagConstraints.ipady = -3;
152: gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 7);
153: jPanelXML.add(jButtonXMLDatePattern, gridBagConstraints);
154:
155: jLabelXMLNumberPattern.setText("Number pattern");
156: jLabelXMLNumberPattern.setPreferredSize(null);
157: gridBagConstraints = new java.awt.GridBagConstraints();
158: gridBagConstraints.gridx = 0;
159: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
160: gridBagConstraints.ipadx = 24;
161: gridBagConstraints.insets = new java.awt.Insets(1, 3, 3, 3);
162: jPanelXML.add(jLabelXMLNumberPattern, gridBagConstraints);
163:
164: gridBagConstraints = new java.awt.GridBagConstraints();
165: gridBagConstraints.gridx = 1;
166: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
167: gridBagConstraints.ipadx = 232;
168: gridBagConstraints.ipady = 1;
169: gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
170: gridBagConstraints.weightx = 1.0;
171: gridBagConstraints.insets = new java.awt.Insets(1, 3, 3, 3);
172: jPanelXML.add(jTextFieldXMLNumberPattern, gridBagConstraints);
173:
174: jButtonXMLNumberPattern.setText("Create");
175: jButtonXMLNumberPattern.setMargin(new java.awt.Insets(2, 4, 2,
176: 4));
177: jButtonXMLNumberPattern.setMaximumSize(new java.awt.Dimension(
178: 100, 25));
179: jButtonXMLNumberPattern.setMinimumSize(new java.awt.Dimension(
180: 70, 25));
181: jButtonXMLNumberPattern
182: .setPreferredSize(new java.awt.Dimension(70, 25));
183: jButtonXMLNumberPattern
184: .addActionListener(new java.awt.event.ActionListener() {
185: public void actionPerformed(
186: java.awt.event.ActionEvent evt) {
187: jButtonXMLDatePatternjButton2ActionPerformed1(evt);
188: }
189: });
190:
191: gridBagConstraints = new java.awt.GridBagConstraints();
192: gridBagConstraints.gridx = 2;
193: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
194: gridBagConstraints.ipadx = 21;
195: gridBagConstraints.ipady = -3;
196: gridBagConstraints.insets = new java.awt.Insets(1, 3, 3, 7);
197: jPanelXML.add(jButtonXMLNumberPattern, gridBagConstraints);
198:
199: jPanel3.setLayout(new java.awt.GridBagLayout());
200:
201: jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(
202: javax.swing.BorderFactory.createEtchedBorder(),
203: "Locale / Time zone"));
204: jLabelXMLLocale.setText("Locale");
205: gridBagConstraints = new java.awt.GridBagConstraints();
206: gridBagConstraints.gridx = 0;
207: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
208: gridBagConstraints.ipadx = 24;
209: gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);
210: jPanel3.add(jLabelXMLLocale, gridBagConstraints);
211:
212: jTextFieldXMLLocaleValue.setEditable(false);
213: jTextFieldXMLLocaleValue.setText("Default");
214: gridBagConstraints = new java.awt.GridBagConstraints();
215: gridBagConstraints.gridx = 1;
216: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
217: gridBagConstraints.ipadx = 232;
218: gridBagConstraints.ipady = 1;
219: gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
220: gridBagConstraints.weightx = 1.0;
221: gridBagConstraints.insets = new java.awt.Insets(4, 0, 4, 4);
222: jPanel3.add(jTextFieldXMLLocaleValue, gridBagConstraints);
223:
224: jLabelXMLTimeZone.setText("Time zone");
225: gridBagConstraints = new java.awt.GridBagConstraints();
226: gridBagConstraints.gridx = 0;
227: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
228: gridBagConstraints.ipadx = 24;
229: gridBagConstraints.insets = new java.awt.Insets(0, 4, 4, 4);
230: jPanel3.add(jLabelXMLTimeZone, gridBagConstraints);
231:
232: jButtonXMLLocale.setText("Select...");
233: jButtonXMLLocale.setMargin(new java.awt.Insets(2, 4, 2, 4));
234: jButtonXMLLocale
235: .setMaximumSize(new java.awt.Dimension(100, 25));
236: jButtonXMLLocale.setMinimumSize(new java.awt.Dimension(70, 25));
237: jButtonXMLLocale
238: .setPreferredSize(new java.awt.Dimension(70, 25));
239: jButtonXMLLocale
240: .addActionListener(new java.awt.event.ActionListener() {
241: public void actionPerformed(
242: java.awt.event.ActionEvent evt) {
243: jButtonXMLDatePatternjButton2ActionPerformed11(evt);
244: }
245: });
246:
247: gridBagConstraints = new java.awt.GridBagConstraints();
248: gridBagConstraints.gridx = 2;
249: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
250: gridBagConstraints.ipadx = 21;
251: gridBagConstraints.ipady = -3;
252: gridBagConstraints.insets = new java.awt.Insets(4, 0, 4, 8);
253: jPanel3.add(jButtonXMLLocale, gridBagConstraints);
254:
255: jTextFieldXMLTimeZoneValue.setEditable(false);
256: jTextFieldXMLTimeZoneValue.setText("Default");
257: gridBagConstraints = new java.awt.GridBagConstraints();
258: gridBagConstraints.gridx = 1;
259: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
260: gridBagConstraints.ipadx = 232;
261: gridBagConstraints.ipady = 1;
262: gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
263: gridBagConstraints.weightx = 1.0;
264: gridBagConstraints.insets = new java.awt.Insets(0, 0, 4, 4);
265: jPanel3.add(jTextFieldXMLTimeZoneValue, gridBagConstraints);
266:
267: jButtonXMLTimeZone.setText("Select...");
268: jButtonXMLTimeZone.setMargin(new java.awt.Insets(2, 4, 2, 4));
269: jButtonXMLTimeZone.setMaximumSize(new java.awt.Dimension(100,
270: 25));
271: jButtonXMLTimeZone
272: .setMinimumSize(new java.awt.Dimension(70, 25));
273: jButtonXMLTimeZone.setPreferredSize(new java.awt.Dimension(70,
274: 25));
275: jButtonXMLTimeZone
276: .addActionListener(new java.awt.event.ActionListener() {
277: public void actionPerformed(
278: java.awt.event.ActionEvent evt) {
279: jButtonXMLDatePattern1jButtonXMLDatePatternjButton2ActionPerformed11(evt);
280: }
281: });
282:
283: gridBagConstraints = new java.awt.GridBagConstraints();
284: gridBagConstraints.gridx = 2;
285: gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
286: gridBagConstraints.ipadx = 21;
287: gridBagConstraints.ipady = -3;
288: gridBagConstraints.insets = new java.awt.Insets(0, 0, 4, 8);
289: jPanel3.add(jButtonXMLTimeZone, gridBagConstraints);
290:
291: gridBagConstraints = new java.awt.GridBagConstraints();
292: gridBagConstraints.gridx = 0;
293: gridBagConstraints.gridwidth = 3;
294: gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
295: gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
296: gridBagConstraints.weightx = 1.0;
297: gridBagConstraints.weighty = 1.0;
298: gridBagConstraints.insets = new java.awt.Insets(4, 3, 0, 4);
299: jPanelXML.add(jPanel3, gridBagConstraints);
300:
301: add(jPanelXML, java.awt.BorderLayout.CENTER);
302:
303: }// </editor-fold>//GEN-END:initComponents
304:
305: private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
306: String fileName = "";
307: javax.swing.JFileChooser jfc = new javax.swing.JFileChooser(
308: MainFrame.getMainInstance().getCurrentDirectory());
309:
310: jfc.setDialogTitle("Select XML file....");
311:
312: jfc
313: .addChoosableFileFilter(new javax.swing.filechooser.FileFilter() {
314: public boolean accept(java.io.File file) {
315: String filename = file.getName();
316: return (filename.toLowerCase().endsWith(".xml") || file
317: .isDirectory());
318: }
319:
320: public String getDescription() {
321: return "XML *.xml";
322: }
323: });
324:
325: jfc.setMultiSelectionEnabled(false);
326: jfc.setDialogType(javax.swing.JFileChooser.OPEN_DIALOG);
327: if (jfc.showOpenDialog(this ) == javax.swing.JOptionPane.OK_OPTION) {
328: java.io.File file = jfc.getSelectedFile();
329: try {
330: jTextFieldXMLFile.setText(file.getAbsolutePath());
331: } catch (Exception ex) {
332: }
333: }
334:
335: }
336:
337: private void jButtonXMLDatePattern1jButtonXMLDatePatternjButton2ActionPerformed11(
338: java.awt.event.ActionEvent evt) {
339:
340: TimeZoneDialog lsd = new TimeZoneDialog(
341: (JDialog) SwingUtilities.getWindowAncestor(this ), true);
342: if (this .tmpXMLTimeZone != null) {
343: lsd.setReportTimeZoneId(tmpXMLTimeZone.getID());
344: }
345:
346: lsd.setVisible(true);
347:
348: if (lsd.getDialogResult() == JOptionPane.OK_OPTION) {
349: if (lsd.getReportTimeZoneId() == null) {
350: tmpXMLTimeZone = null;
351: jTextFieldXMLTimeZoneValue.setText(I18n.getString(
352: "timezone.default", "Default"));
353: } else {
354: tmpXMLTimeZone = TimeZone.getTimeZone(lsd
355: .getReportTimeZoneId());
356: jTextFieldXMLTimeZoneValue.setText(tmpXMLTimeZone
357: .getDisplayName(I18n.getCurrentLocale()));
358: }
359: }
360: }
361:
362: private void jButtonXMLDatePatternjButton2ActionPerformed11(
363: java.awt.event.ActionEvent evt) {
364:
365: LocaleSelectorDialog lsd = new LocaleSelectorDialog(
366: (JDialog) SwingUtilities.getWindowAncestor(this ), true);
367: if (this .tmpXMLLocale != null) {
368: lsd.setSelectedLocale(this .tmpXMLLocale);
369: }
370:
371: lsd.setVisible(true);
372:
373: if (lsd.getDialogResult() == JOptionPane.OK_OPTION) {
374: tmpXMLLocale = lsd.getSelectedLocale();
375: jTextFieldXMLLocaleValue
376: .setText((tmpXMLLocale == null) ? I18n.getString(
377: "timezone.default", "Default")
378: : tmpXMLLocale.getDisplayName(I18n
379: .getCurrentLocale()));
380: }
381:
382: }
383:
384: private void jButtonXMLDatePatternjButton2ActionPerformed1(
385: java.awt.event.ActionEvent evt) {
386:
387: FieldPatternDialog fpd = new FieldPatternDialog(
388: (JDialog) SwingUtilities.getWindowAncestor(this ), true);
389: fpd.setOnlyNumbers(true);
390: if (jTextFieldXMLNumberPattern.getText().length() > 0) {
391: fpd.setPattern(jTextFieldXMLNumberPattern.getText());
392: }
393:
394: fpd.setVisible(true);
395:
396: if (fpd.getDialogResult() == JOptionPane.OK_OPTION) {
397: jTextFieldXMLNumberPattern.setText(fpd.getPattern());
398: }
399:
400: }
401:
402: private void jButton2ActionPerformed1(java.awt.event.ActionEvent evt) {
403:
404: FieldPatternDialog fpd = new FieldPatternDialog(
405: (JDialog) SwingUtilities.getWindowAncestor(this ), true);
406: fpd.setOnlyDate(true);
407: if (jTextFieldXMLDatePattern.getText().length() > 0) {
408: fpd.setPattern(jTextFieldXMLDatePattern.getText());
409: }
410:
411: fpd.setVisible(true);
412:
413: if (fpd.getDialogResult() == JOptionPane.OK_OPTION) {
414: jTextFieldXMLDatePattern.setText(fpd.getPattern());
415: }
416: }
417:
418: public void setIReportConnection(IReportConnection c) {
419:
420: this .iReportConnection = c;
421: if (iReportConnection instanceof JRXMLDataSourceConnection) {
422: JRXMLDataSourceConnection con = (JRXMLDataSourceConnection) iReportConnection;
423: this .jTextFieldXMLFile.setText(con.getFilename());
424:
425: this .jTextFieldXMLDatePattern.setText(Misc.nvl(con
426: .getDatePattern(), ""));
427: this .jTextFieldXMLNumberPattern.setText(Misc.nvl(con
428: .getNumberPattern(), ""));
429:
430: this .tmpXMLLocale = con.getLocale();
431: if (this .tmpXMLLocale != null) {
432: jTextFieldXMLLocaleValue.setText(this .tmpXMLLocale
433: .getDisplayName(I18n.getCurrentLocale()));
434: } else {
435: jTextFieldXMLLocaleValue.setText(I18n.getString(
436: "timezone.default", "Default"));
437: }
438:
439: this .tmpXMLTimeZone = con.getTimeZone();
440: if (this .tmpXMLLocale != null) {
441: jTextFieldXMLTimeZoneValue.setText(tmpXMLTimeZone
442: .getDisplayName(I18n.getCurrentLocale()));
443: } else {
444: jTextFieldXMLTimeZoneValue.setText(I18n.getString(
445: "timezone.default", "Default"));
446: }
447: }
448: }
449:
450: public IReportConnection getIReportConnection() {
451:
452: IReportConnection irConn = new JRXMLDataSourceConnection();
453: ((JRXMLDataSourceConnection) irConn)
454: .setFilename(this .jTextFieldXMLFile.getText().trim());
455: //((JRXMLDataSourceConnection)irConn).setSelectExpression( this.jTextFieldRecordPath.getText().trim() );
456: ((JRXMLDataSourceConnection) irConn).setUseConnection(true);
457:
458: ((JRXMLDataSourceConnection) irConn)
459: .setDatePattern(jTextFieldXMLDatePattern.getText());
460: ((JRXMLDataSourceConnection) irConn)
461: .setNumberPattern(jTextFieldXMLNumberPattern.getText());
462: ((JRXMLDataSourceConnection) irConn)
463: .setLocale(this .tmpXMLLocale);
464: ((JRXMLDataSourceConnection) irConn)
465: .setTimeZone(this .tmpXMLTimeZone);
466:
467: iReportConnection = irConn;
468: return iReportConnection;
469: }
470:
471: public void applyI18n() {
472: // Start autogenerated code ----------------------
473: //jRadioButtonXML_connection.setText(I18n.getString("connectionDialog.radioButtonXML_connection","Use the report XPath expression when filling the report"));
474: //jRadioButtonXML_datasource.setText(I18n.getString("connectionDialog.radioButtonXML_datasource","Create a datasource using this expression"));
475: // End autogenerated code ----------------------
476: // Start autogenerated code ----------------------
477: //jButton2.setText(I18n.getString("connectionDialog.button2","Browse"));
478: //jLabel9.setText(I18n.getString("connectionDialog.label9","XML file"));
479: //jLabelXMLRecordPath.setText(I18n.getString("connectionDialog.labelXMLRecordPath","Select Expression"));
480: // End autogenerated code ----------------------
481:
482: jTextFieldXMLTimeZoneValue.setText(I18n.getString(
483: "timezone.default", "Default"));
484: jTextFieldXMLLocaleValue.setText(I18n.getString(
485: "timezone.default", "Default"));
486:
487: ((javax.swing.border.TitledBorder) jPanel3.getBorder())
488: .setTitle(it.businesslogic.ireport.util.I18n.getString(
489: "connectionDialog.borderXMLLocaleTimeZone",
490: "Locale / Time zone"));
491:
492: jLabelXMLLocale.setText(I18n.getString(
493: "connectionDialog.labelXMLLocale", "Locale"));
494: jLabelXMLTimeZone.setText(I18n.getString(
495: "connectionDialog.labelXMLTimeZone", "Time zone"));
496: jLabelXMLDatePattern
497: .setText(I18n.getString(
498: "connectionDialog.labelXMLDatePattern",
499: "Date pattern"));
500: jLabelXMLNumberPattern.setText(I18n.getString(
501: "connectionDialog.labelXMLNumberPattern",
502: "Number pattern"));
503: jButtonXMLDatePattern.setText(I18n.getString(
504: "connectionDialog.buttonXMLDatePattern", "Create..."));
505: jButtonXMLNumberPattern
506: .setText(I18n.getString(
507: "connectionDialog.buttonXMLNumberPattern",
508: "Create..."));
509: jButtonXMLLocale.setText(I18n.getString(
510: "connectionDialog.buttonXMLLocale", "Select..."));
511: jButtonXMLTimeZone.setText(I18n.getString(
512: "connectionDialog.buttonXMLTimeZone", "Select..."));
513: }
514:
515: // Variables declaration - do not modify//GEN-BEGIN:variables
516: private javax.swing.ButtonGroup buttonGroup1;
517: private javax.swing.JButton jButtonXMLDatePattern;
518: private javax.swing.JButton jButtonXMLLocale;
519: private javax.swing.JButton jButtonXMLNumberPattern;
520: private javax.swing.JButton jButtonXMLTimeZone;
521: private javax.swing.JLabel jLabel9;
522: private javax.swing.JLabel jLabelXMLDatePattern;
523: private javax.swing.JLabel jLabelXMLLocale;
524: private javax.swing.JLabel jLabelXMLNumberPattern;
525: private javax.swing.JLabel jLabelXMLTimeZone;
526: private javax.swing.JPanel jPanel1;
527: private javax.swing.JPanel jPanel3;
528: private javax.swing.JPanel jPanelXML;
529: private javax.swing.JSeparator jSeparator9;
530: private javax.swing.JTextField jTextFieldXMLDatePattern;
531: private javax.swing.JTextField jTextFieldXMLFile;
532: private javax.swing.JTextField jTextFieldXMLLocaleValue;
533: private javax.swing.JTextField jTextFieldXMLNumberPattern;
534: private javax.swing.JTextField jTextFieldXMLTimeZoneValue;
535: // End of variables declaration//GEN-END:variables
536:
537: }
|