KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > businesslogic > ireport > gui > ElementPropertiesDialog


1 /*
2  * Copyright (C) 2005 - 2006 JasperSoft Corporation. All rights reserved.
3  * http://www.jaspersoft.com.
4  *
5  * Unless you have purchased a commercial license agreement from JasperSoft,
6  * the following license terms apply:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as published by
10  * the Free Software Foundation.
11  *
12  * This program is distributed WITHOUT ANY WARRANTY; and without the
13  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
18  * or write to:
19  *
20  * Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330,
22  * Boston, MA USA 02111-1307
23  *
24  *
25  *
26  *
27  * ElementPropertiesDialog.java
28  *
29  * Created on 28 aprile 2003, 23.53
30  *
31  */

32
33 package it.businesslogic.ireport.gui;
34
35 import it.businesslogic.ireport.HyperLinkableReportElement;
36 import it.businesslogic.ireport.IReportFont;
37 import it.businesslogic.ireport.JRSubreportParameter;
38 import it.businesslogic.ireport.util.*;
39 import it.businesslogic.ireport.gui.event.*;
40 import java.util.*;
41 import java.awt.*;
42 import it.businesslogic.ireport.*;
43 import it.businesslogic.ireport.crosstab.CrosstabCell;
44 import it.businesslogic.ireport.gui.box.*;
45 import it.businesslogic.ireport.gui.sheet.*;
46 import javax.swing.DefaultComboBoxModel JavaDoc;
47
48 /**
49  *
50  * @author <a HREF="mailto:gt78@users.sourceforge.net">Giulio Toffoli</a>
51  * @author <a HREF="mailto:phenderson@users.sourceforge.net">Peter Henderson</a>
52  */

53 public class ElementPropertiesDialog extends javax.swing.JDialog JavaDoc {
54     
55     public static final int GRAPHICS_TAB = 1;
56     public static final int RECTANGLE_TAB = 2;
57     public static final int LINE_TAB = 3;
58     public static final int IMAGE_TAB = 4;
59     public static final int FONT_TAB = 5;
60     public static final int STATITEXT_TAB = 6;
61     public static final int TEXTFIELD_TAB = 7;
62     public static final int HYPERLINK_TAB = 8;
63     public static final int SUBREPORT1_TAB = 9;
64     public static final int SUBREPORT2_TAB = 10;
65     public static final int CHART_TAB = 11;
66     public static final int COMMON_TAB = 12;
67     public static final int BARCODE_TAB = 13;
68     
69     
70     private JReportFrame jrf = null;
71     //private String lastSelectedPaneName = "Common";
72
private javax.swing.JPanel JavaDoc lastSelectedPanel = null;
73     private BoxPanel boxPanel = null;
74     private ReportElementSheetPanel sheetPanel = null;
75     
76     
77     /** Creates new form ElementPropertiesDialog */
78     public ElementPropertiesDialog(java.awt.Frame JavaDoc parent, boolean modal) {
79         super(parent, modal);
80         initComponents();
81         
82         //System.out.println(">>> 1");
83

84         jTabbedPane.removeAll();
85         
86         
87         this.setSize(370, 380);
88         
89         
90         javax.swing.KeyStroke JavaDoc escape = javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0, false);
91         javax.swing.Action JavaDoc escapeAction = new javax.swing.AbstractAction JavaDoc() {
92             public void actionPerformed(java.awt.event.ActionEvent JavaDoc e) {
93                 setVisible(false);
94             }
95         };
96         
97         getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW).put(escape, "ESCAPE");
98         getRootPane().getActionMap().put("ESCAPE", escapeAction);
99         
100         // Image Expression Classes...
101
jComboBoxImageExpressionClass.addItem("java.lang.String");
102         jComboBoxImageExpressionClass.addItem("java.io.File");
103         jComboBoxImageExpressionClass.addItem("java.net.URL");
104         jComboBoxImageExpressionClass.addItem("java.io.InputStream");
105         jComboBoxImageExpressionClass.addItem("java.awt.Image");
106         jComboBoxImageExpressionClass.addItem("net.sf.jasperreports.engine.JRRenderable");
107         
108         jNumberComboBoxSize.addEntry("3",3);
109         jNumberComboBoxSize.addEntry("5",5);
110         jNumberComboBoxSize.addEntry("8",8);
111         jNumberComboBoxSize.addEntry("10",10);
112         jNumberComboBoxSize.addEntry("12",12);
113         jNumberComboBoxSize.addEntry("14",14);
114         jNumberComboBoxSize.addEntry("18",18);
115         jNumberComboBoxSize.addEntry("24",24);
116         jNumberComboBoxSize.addEntry("36",36);
117         jNumberComboBoxSize.addEntry("48",48);
118         
119         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1250","CP1250 (Central European)"));
120         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1251","CP1251 (Cyrillic)"));
121         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1252","CP1252 (Western European ANSI aka WinAnsi)"));
122         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1253","CP1253 (Greek)"));
123         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1254","CP1254 (Turkish)"));
124         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1255","CP1255 (Hebrew)"));
125         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1256","CP1256 (Arabic)"));
126         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1257","CP1257 (Baltic)"));
127         jComboBoxPdfEncoding.addItem(new PdfEncoding("Cp1258","CP1258 (Vietnamese)"));
128         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniGB-UCS2-H","UniGB-UCS2-H (Chinese Simplified)"));
129         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniGB-UCS2-V","UniGB-UCS2-V (Chinese Simplified)"));
130         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniCNS-UCS2-H","UniCNS-UCS2-H (Chinese traditional)"));
131         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniCNS-UCS2-V","UniCNS-UCS2-V (Chinese traditional)"));
132         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniJIS-UCS2-H","UniJIS-UCS2-H (Japanese)"));
133         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniJIS-UCS2-V","UniJIS-UCS2-V (Japanese)"));
134         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-H (Japanese)"));
135         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniJIS-UCS2-HW-V","UniJIS-UCS2-HW-V (Japanese)"));
136         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniKS-UCS2-H","UniKS-UCS2-H (Korean)"));
137         jComboBoxPdfEncoding.addItem(new PdfEncoding("UniKS-UCS2-V","UniKS-UCS2-V (Korean)"));
138         jComboBoxPdfEncoding.addItem(new PdfEncoding("Identity-H","Identity-H (Unicode with horizontal writing)"));
139         jComboBoxPdfEncoding.addItem(new PdfEncoding("Identity-V","Identity-V (Unicode with vertical writing)"));
140         
141         jComboBoxPattern.addItem(new PdfEncoding("#,##0.00"," #,##0.00 (example 1,234.56)"));
142         
143         jComboBoxTextFieldExpressionClass.addItem("java.lang.Boolean");
144         jComboBoxTextFieldExpressionClass.addItem("java.lang.Byte");
145         jComboBoxTextFieldExpressionClass.addItem("java.util.Date");
146         jComboBoxTextFieldExpressionClass.addItem("java.sql.Timestamp");
147         jComboBoxTextFieldExpressionClass.addItem("java.sql.Time");
148         jComboBoxTextFieldExpressionClass.addItem("java.lang.Double");
149         jComboBoxTextFieldExpressionClass.addItem("java.lang.Float");
150         jComboBoxTextFieldExpressionClass.addItem("java.lang.Integer");
151         jComboBoxTextFieldExpressionClass.addItem("java.lang.Long");
152         jComboBoxTextFieldExpressionClass.addItem("java.lang.Short");
153         jComboBoxTextFieldExpressionClass.addItem("java.math.BigDecimal");
154         jComboBoxTextFieldExpressionClass.addItem("java.lang.Number");
155         jComboBoxTextFieldExpressionClass.addItem("java.lang.String");
156         
157         jComboBoxSubreportExpressionClass.addItem("java.lang.String");
158         jComboBoxSubreportExpressionClass.addItem("java.io.File");
159         jComboBoxSubreportExpressionClass.addItem("java.net.URL");
160         jComboBoxSubreportExpressionClass.addItem("java.io.InputStream");
161         jComboBoxSubreportExpressionClass.addItem("net.sf.jasperreports.engine.JasperReport");
162         
163         jComboBoxLinkType.addItem("None");
164         jComboBoxLinkType.addItem("Reference");
165         jComboBoxLinkType.addItem("LocalAnchor");
166         jComboBoxLinkType.addItem("LocalPage");
167         jComboBoxLinkType.addItem("RemoteAnchor");
168         jComboBoxLinkType.addItem("RemotePage");
169         
170         // Barcode Evaluation Time...
171
jComboBoxLinkTarget.addItem("Self");
172         jComboBoxLinkTarget.addItem("Blank");
173         
174         jComboBoxBarcodeType.addItem(new Tag("1","2of7"));
175         jComboBoxBarcodeType.addItem(new Tag("2","3of9"));
176         jComboBoxBarcodeType.addItem(new Tag("3","Bookland"));
177         jComboBoxBarcodeType.addItem(new Tag("4","Codabar"));
178         jComboBoxBarcodeType.addItem(new Tag("5","Code128"));
179         jComboBoxBarcodeType.addItem(new Tag("6","Code128A"));
180         jComboBoxBarcodeType.addItem(new Tag("7","Code128B"));
181         jComboBoxBarcodeType.addItem(new Tag("8","Code128C"));
182         jComboBoxBarcodeType.addItem(new Tag("9","Code39"));
183         jComboBoxBarcodeType.addItem(new Tag("26","Code39 (Extended)"));
184         jComboBoxBarcodeType.addItem(new Tag("10","EAN128"));
185         jComboBoxBarcodeType.addItem(new Tag("11","EAN13"));
186         jComboBoxBarcodeType.addItem(new Tag("12","GlobalTradeItemNumber"));
187         jComboBoxBarcodeType.addItem(new Tag("13","Int2of5"));
188         jComboBoxBarcodeType.addItem(new Tag("14","Monarch"));
189         jComboBoxBarcodeType.addItem(new Tag("15","NW7"));
190         jComboBoxBarcodeType.addItem(new Tag("16","PDF417"));
191         jComboBoxBarcodeType.addItem(new Tag("17","SCC14ShippingCode"));
192         jComboBoxBarcodeType.addItem(new Tag("18","ShipmentIdentificationNumber"));
193         jComboBoxBarcodeType.addItem(new Tag("19","SSCC18"));
194         jComboBoxBarcodeType.addItem(new Tag("20","Std2of5"));
195         jComboBoxBarcodeType.addItem(new Tag("21","UCC128"));
196         jComboBoxBarcodeType.addItem(new Tag("22","UPCA"));
197         jComboBoxBarcodeType.addItem(new Tag("23","USD3"));
198         jComboBoxBarcodeType.addItem(new Tag("24","USD4"));
199         jComboBoxBarcodeType.addItem(new Tag("25","USPS"));
200                 
201         jSpinnerBookmarkLevel.setModel( new javax.swing.SpinnerNumberModel JavaDoc(0,0,10000,1));
202         
203         // Load Fonts...
204
String JavaDoc[] fontFamilies = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
205         for (int i=0; i<fontFamilies.length; ++i) {
206             jComboBoxFontName.addItem(fontFamilies[i]);
207         }
208         
209         MainFrame.getMainInstance().addFontsListChangedListener( new FontsListChangedListener() {
210             public void fontsListChanged(FontsListChangedEvent evt) {
211                 updateFonts();
212             }
213         } );
214         
215         this.jRTextExpressionAreaPrintWhenExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
216             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
217                 jRTextExpressionAreaPrintWhenExpressionTextChanged();
218             }
219             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
220                 jRTextExpressionAreaPrintWhenExpressionTextChanged();
221             }
222             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
223                 jRTextExpressionAreaPrintWhenExpressionTextChanged();
224             }
225         });
226         
227         
228         
229         this.jTextAreaText.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
230             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
231                 jTextAreaTextChanged();
232             }
233             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
234                 jTextAreaTextChanged();
235             }
236             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
237                 jTextAreaTextChanged();
238             }
239         });
240         
241         this.jRTextExpressionAreaTextFieldExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
242             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
243                 jRTextExpressionAreaTextFieldExpressionTextChanged();
244             }
245             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
246                 jRTextExpressionAreaTextFieldExpressionTextChanged();
247             }
248             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
249                 jRTextExpressionAreaTextFieldExpressionTextChanged();
250             }
251         });
252         
253         this.jRTextExpressionAreaImageExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
254             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
255                 jRTextExpressionAreaImageExpressionTextChanged();
256             }
257             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
258                 jRTextExpressionAreaImageExpressionTextChanged();
259             }
260             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
261                 jRTextExpressionAreaImageExpressionTextChanged();
262             }
263         });
264         
265         this.jRTextExpressionAreaSubreportExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
266             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
267                 jRTextExpressionAreaSubreportExpressionTextChanged();
268             }
269             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
270                 jRTextExpressionAreaSubreportExpressionTextChanged();
271             }
272             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
273                 jRTextExpressionAreaSubreportExpressionTextChanged();
274             }
275         });
276         
277         this.jRTextExpressionAreaTextConnectionExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
278             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
279                 jRTextExpressionAreaTextConnectionExpressionTextChanged();
280             }
281             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
282                 jRTextExpressionAreaTextConnectionExpressionTextChanged();
283             }
284             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
285                 jRTextExpressionAreaTextConnectionExpressionTextChanged();
286             }
287         });
288         
289         this.jRTextExpressionAreaCrosstabParametersMapExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
290             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
291                 jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged();
292             }
293             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
294                 jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged();
295             }
296             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
297                 jRTextExpressionAreaCrosstabParametersMapExpressionTextChanged();
298             }
299         });
300         
301         this.jRTextExpressionAreaSubreportMapExpression.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
302             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
303                 jRTextExpressionAreaSubreportMapExpressionTextChanged();
304             }
305             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
306                 jRTextExpressionAreaSubreportMapExpressionTextChanged();
307             }
308             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
309                 jRTextExpressionAreaSubreportMapExpressionTextChanged();
310             }
311         });
312         
313         
314         javax.swing.DefaultListSelectionModel JavaDoc dlsm = (javax.swing.DefaultListSelectionModel JavaDoc)this.jTableSubreportParameters.getSelectionModel();
315         dlsm.addListSelectionListener(new javax.swing.event.ListSelectionListener JavaDoc() {
316             public void valueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
317                 jTableSubreportParametersListSelectionValueChanged(e);
318             }
319         });
320         
321         dlsm = (javax.swing.DefaultListSelectionModel JavaDoc)this.jTableSubreportReturnValues.getSelectionModel();
322         dlsm.addListSelectionListener(new javax.swing.event.ListSelectionListener JavaDoc() {
323             public void valueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
324                 jTableSubreportReturnValuesListSelectionValueChanged(e);
325             }
326         });
327         
328         dlsm = (javax.swing.DefaultListSelectionModel JavaDoc)this.jTableCrosstabParameters.getSelectionModel();
329         dlsm.addListSelectionListener(new javax.swing.event.ListSelectionListener JavaDoc() {
330             public void valueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
331                 jTableCrosstabParametersListSelectionValueChanged(e);
332             }
333         });
334         
335         dlsm = (javax.swing.DefaultListSelectionModel JavaDoc)this.jTableLinkParameters.getSelectionModel();
336         dlsm.addListSelectionListener(new javax.swing.event.ListSelectionListener JavaDoc() {
337             public void valueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
338                 jTableLinkParametersListSelectionValueChanged(e);
339             }
340         });
341         
342         
343         this.jRTextExpressionAreaAnchorName.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
344             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
345                 jRTextExpressionAreaAnchorNameTextChanged();
346             }
347             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
348                 jRTextExpressionAreaAnchorNameTextChanged();
349             }
350             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
351                 jRTextExpressionAreaAnchorNameTextChanged();
352             }
353         });
354         
355         this.jRTextExpressionAreaAnchor.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
356             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
357                 jRTextExpressionAreaAnchorTextChanged();
358             }
359             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
360                 jRTextExpressionAreaAnchorTextChanged();
361             }
362             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
363                 jRTextExpressionAreaAnchorTextChanged();
364             }
365         });
366         
367         this.jRTextExpressionAreaPage.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
368             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
369                 jRTextExpressionAreaPageTextChanged();
370             }
371             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
372                 jRTextExpressionAreaPageTextChanged();
373             }
374             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
375                 jRTextExpressionAreaPageTextChanged();
376             }
377         });
378         
379         this.jRTextExpressionAreaReference.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
380             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
381                 jRTextExpressionAreaReferenceTextChanged();
382             }
383             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
384                 jRTextExpressionAreaReferenceTextChanged();
385             }
386             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
387                 jRTextExpressionAreaReferenceTextChanged();
388             }
389         });
390         
391         
392                 /*this.jComboBoxChartFactory.getDocument().addDocumentListener( new javax.swing.event.DocumentListener() {
393                         public void changedUpdate(javax.swing.event.DocumentEvent evt) {
394                                 chartFactoryChanged();
395                         }
396                         public void insertUpdate(javax.swing.event.DocumentEvent evt) {
397                                 chartFactoryChanged();
398                         }
399                         public void removeUpdate(javax.swing.event.DocumentEvent evt) {
400                                 chartFactoryChanged();
401                         }
402                 });*/

403         
404         this.jTextFieldName.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
405             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
406                 jTextFieldNameChanged();
407             }
408             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
409                 jTextFieldNameChanged();
410             }
411             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
412                 jTextFieldNameChanged();
413             }
414         });
415         
416         this.jBarcodeExpressionAreaAppIdentifier.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
417             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
418                 jTextFieldAppIdentifierChanged();
419             }
420             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
421                 jTextFieldAppIdentifierChanged();
422             }
423             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
424                 jTextFieldAppIdentifierChanged();
425             }
426         });
427         
428         this.jBarcodeExpressionArea.getDocument().addDocumentListener( new javax.swing.event.DocumentListener JavaDoc() {
429             public void changedUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
430                 BarcodeActionPerformed(null);
431             }
432             public void insertUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
433                 BarcodeActionPerformed(null);
434             }
435             public void removeUpdate(javax.swing.event.DocumentEvent JavaDoc evt) {
436                 BarcodeActionPerformed(null);
437             }
438         });
439         
440         boxPanel = new BoxPanel();
441         boxPanel.addActionListener( new java.awt.event.ActionListener JavaDoc() {
442             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
443                 boxActionPerformed(evt);
444             }
445         });
446         
447         java.awt.GridBagConstraints JavaDoc gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
448         gridBagConstraints.gridx = 4;
449         gridBagConstraints.gridy = 2;
450         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
451         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 4, 2, 4);
452         gridBagConstraints.weightx = 1.0;
453         gridBagConstraints.weighty = 1.0;
454         gridBagConstraints.fill = gridBagConstraints.BOTH;
455         jPanelBorder.add(boxPanel, gridBagConstraints);
456         
457         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, -1, -1, -1);
458         sheetPanel = new ReportElementSheetPanel();
459         jPanelSheet.add(sheetPanel, gridBagConstraints);
460         
461         javax.swing.JTextField JavaDoc editor = (javax.swing.JTextField JavaDoc) jComboBoxPattern.getEditor().getEditorComponent();
462         editor.addFocusListener(new java.awt.event.FocusAdapter JavaDoc(){
463             public void focusLost(java.awt.event.FocusEvent JavaDoc evt) {
464                 jComboBoxPattern.setSelectedItem(
465                         ((javax.swing.JTextField JavaDoc) jComboBoxPattern.getEditor().getEditorComponent()).getText());
466             }
467         });
468         
469         I18n.addOnLanguageChangedListener( new LanguageChangedListener() {
470             public void languageChanged(LanguageChangedEvent evt) {
471                 applyI18n();
472             }
473         } );
474         
475         applyI18n();
476     }
477     
478     
479     public void boxActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
480         if (jrf == null || getElementSelection().size()==0) return;
481         
482         // Set the new value for all selected elements...
483
Enumeration e = getElementSelection().elements();
484         while (e.hasMoreElements()) {
485             ReportElement element = (ReportElement)e.nextElement();
486             Box box = null;
487             
488             box = ((BoxElement)element).getBox();
489             
490             if (box != null && evt.getActionCommand().equals("LeftPadding")) {
491                 box.setLeftPadding( boxPanel.getBox().getLeftPadding() );
492             } else if (box != null && evt.getActionCommand().equals("RightPadding")) {
493                 box.setRightPadding( boxPanel.getBox().getRightPadding() );
494             } else if (box != null && evt.getActionCommand().equals("TopPadding")) {
495                 box.setTopPadding( boxPanel.getBox().getTopPadding() );
496             } else if (box != null && evt.getActionCommand().equals("BottomPadding")) {
497                 box.setBottomPadding( boxPanel.getBox().getBottomPadding() );
498             } else if (box != null && evt.getActionCommand().equals("LeftBorder")) {
499                 box.setLeftBorder( boxPanel.getBox().getLeftBorder() );
500             } else if (box != null && evt.getActionCommand().equals("RightBorder")) {
501                 box.setRightBorder( boxPanel.getBox().getRightBorder() );
502             } else if (box != null && evt.getActionCommand().equals("TopBorder")) {
503                 box.setTopBorder( boxPanel.getBox().getTopBorder() );
504             } else if (box != null && evt.getActionCommand().equals("BottomBorder")) {
505                 box.setBottomBorder( boxPanel.getBox().getBottomBorder() );
506             } else if (box != null && evt.getActionCommand().equals("LeftBorderColor")) {
507                 box.setLeftBorderColor( boxPanel.getBox().getLeftBorderColor() );
508             } else if (box != null && evt.getActionCommand().equals("RightBorderColor")) {
509                 box.setRightBorderColor( boxPanel.getBox().getRightBorderColor() );
510             } else if (box != null && evt.getActionCommand().equals("TopBorderColor")) {
511                 box.setTopBorderColor( boxPanel.getBox().getTopBorderColor() );
512             } else if (box != null && evt.getActionCommand().equals("BottomBorderColor")) {
513                 box.setBottomBorderColor( boxPanel.getBox().getBottomBorderColor() );
514             }
515         }
516         repaintEditor();;
517         jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
518         
519     }
520     
521     public void jTableSubreportParametersListSelectionValueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
522         if (this.jTableSubreportParameters.getSelectedRowCount() > 0) {
523             this.jButtonModParameter.setEnabled(true);
524             this.jButtonRemParameter.setEnabled(true);
525         } else {
526             this.jButtonModParameter.setEnabled(false);
527             this.jButtonRemParameter.setEnabled(false);
528         }
529     }
530     
531     public void jTableSubreportReturnValuesListSelectionValueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
532         if (this.jTableSubreportReturnValues.getSelectedRowCount() > 0) {
533             this.jButtonModReturnValue.setEnabled(true);
534             this.jButtonRemReturnValue.setEnabled(true);
535         } else {
536             this.jButtonModReturnValue.setEnabled(false);
537             this.jButtonRemReturnValue.setEnabled(false);
538         }
539     }
540     
541     public void jTableCrosstabParametersListSelectionValueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
542         if (this.jTableCrosstabParameters.getSelectedRowCount() > 0) {
543             this.jButtonModCrosstabParameter.setEnabled(true);
544             this.jButtonRemCrosstabParameter.setEnabled(true);
545         } else {
546             this.jButtonModCrosstabParameter.setEnabled(false);
547             this.jButtonRemCrosstabParameter.setEnabled(false);
548         }
549     }
550     
551     public void jTableLinkParametersListSelectionValueChanged(javax.swing.event.ListSelectionEvent JavaDoc e) {
552         if (this.jTableLinkParameters.getSelectedRowCount() > 0) {
553             this.jButtonModLinkParameter.setEnabled(true);
554             this.jButtonRemLinkParameter.setEnabled(true);
555         } else {
556             this.jButtonModLinkParameter.setEnabled(false);
557             this.jButtonRemLinkParameter.setEnabled(false);
558         }
559     }
560     
561     
562     /** This method is called from within the constructor to
563      * initialize the form.
564      * WARNING: Do NOT modify this code. The content of this method is
565      * always regenerated by the Form Editor.
566      */

567     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
568
private void initComponents() {
569         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
570
571         buttonGroupCharts = new javax.swing.ButtonGroup JavaDoc();
572         jTabbedPane = new javax.swing.JTabbedPane JavaDoc();
573         jPanelCommon = new javax.swing.JPanel JavaDoc();
574         jPanel3 = new javax.swing.JPanel JavaDoc();
575         jLabel5 = new javax.swing.JLabel JavaDoc();
576         jNumberFieldLeft = new it.businesslogic.ireport.gui.JNumberField();
577         jLabel4 = new javax.swing.JLabel JavaDoc();
578         jLabel7 = new javax.swing.JLabel JavaDoc();
579         jComboBoxBand = new javax.swing.JComboBox JavaDoc();
580         jLabel1 = new javax.swing.JLabel JavaDoc();
581         jNumberFieldWidth = new it.businesslogic.ireport.gui.JNumberField();
582         jNumberFieldTop = new it.businesslogic.ireport.gui.JNumberField();
583         jLabel2 = new javax.swing.JLabel JavaDoc();
584         jLabel6 = new javax.swing.JLabel JavaDoc();
585         jNumberFieldHeight = new it.businesslogic.ireport.gui.JNumberField();
586         jButtonBackground = new javax.swing.JButton JavaDoc();
587         jButtonForeground = new javax.swing.JButton JavaDoc();
588         jLabel3 = new javax.swing.JLabel JavaDoc();
589         jPanel4 = new javax.swing.JPanel JavaDoc();
590         jCheckBoxTransparent = new javax.swing.JCheckBox JavaDoc();
591         jCheckBoxRemoveLineWhenBlank = new javax.swing.JCheckBox JavaDoc();
592         jCheckBoxPrintInFirstWholeBand = new javax.swing.JCheckBox JavaDoc();
593         jCheckBoxPrintWhenDetailOverflows = new javax.swing.JCheckBox JavaDoc();
594         jCheckBoxPrintRepeatedValues = new javax.swing.JCheckBox JavaDoc();
595         jPanel5 = new javax.swing.JPanel JavaDoc();
596         jLabel8 = new javax.swing.JLabel JavaDoc();
597         jComboBoxPositionType = new javax.swing.JComboBox JavaDoc();
598         jLabel9 = new javax.swing.JLabel JavaDoc();
599         jComboBoxGroups = new javax.swing.JComboBox JavaDoc();
600         jLabel46 = new javax.swing.JLabel JavaDoc();
601         jTextFieldName = new javax.swing.JTextField JavaDoc();
602         jPanel6 = new javax.swing.JPanel JavaDoc();
603         jLabel10 = new javax.swing.JLabel JavaDoc();
604         jRTextExpressionAreaPrintWhenExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
605         jPanel11 = new javax.swing.JPanel JavaDoc();
606         jLabel12 = new javax.swing.JLabel JavaDoc();
607         jComboBoxStretchType = new javax.swing.JComboBox JavaDoc();
608         jPanel17 = new javax.swing.JPanel JavaDoc();
609         jLabelStyle = new javax.swing.JLabel JavaDoc();
610         jComboBoxStyle = new javax.swing.JComboBox JavaDoc();
611         jPanelGraphicselement = new javax.swing.JPanel JavaDoc();
612         jComboBoxFill = new javax.swing.JComboBox JavaDoc();
613         jLabel11 = new javax.swing.JLabel JavaDoc();
614         jComboBoxPen = new javax.swing.JComboBox JavaDoc();
615         jLabel13 = new javax.swing.JLabel JavaDoc();
616         jSeparator7 = new javax.swing.JSeparator JavaDoc();
617         jPanelRectangle = new javax.swing.JPanel JavaDoc();
618         jPanel1 = new javax.swing.JPanel JavaDoc();
619         jLabel14 = new javax.swing.JLabel JavaDoc();
620         jNumberFieldRadius = new it.businesslogic.ireport.gui.JNumberField();
621         jPanelLine = new javax.swing.JPanel JavaDoc();
622         jLabel15 = new javax.swing.JLabel JavaDoc();
623         jComboBoxLineDirection = new javax.swing.JComboBox JavaDoc();
624         jPanelImage = new javax.swing.JPanel JavaDoc();
625         jRTextExpressionAreaImageExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
626         jLabel16 = new javax.swing.JLabel JavaDoc();
627         jButtonFindImage = new javax.swing.JButton JavaDoc();
628         jLabel17 = new javax.swing.JLabel JavaDoc();
629         jComboBoxImageExpressionClass = new javax.swing.JComboBox JavaDoc();
630         jLabel18 = new javax.swing.JLabel JavaDoc();
631         jComboBoxScale = new javax.swing.JComboBox JavaDoc();
632         jCheckBoxImageCache = new javax.swing.JCheckBox JavaDoc();
633         jLabel19 = new javax.swing.JLabel JavaDoc();
634         jComboBoxVerticalAlignment = new javax.swing.JComboBox JavaDoc();
635         jLabel20 = new javax.swing.JLabel JavaDoc();
636         jComboBoxHorizontalAlignment = new javax.swing.JComboBox JavaDoc();
637         jLabel21 = new javax.swing.JLabel JavaDoc();
638         jComboBoxEvaluationTime = new javax.swing.JComboBox JavaDoc();
639         jLabel22 = new javax.swing.JLabel JavaDoc();
640         jComboBoxImageGroup = new javax.swing.JComboBox JavaDoc();
641         jSeparator1 = new javax.swing.JSeparator JavaDoc();
642         jCheckBoxImageIsLazy = new javax.swing.JCheckBox JavaDoc();
643         jLabel34 = new javax.swing.JLabel JavaDoc();
644         jComboBoxImageOnError = new javax.swing.JComboBox JavaDoc();
645         jPanelText = new javax.swing.JPanel JavaDoc();
646         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
647         jTextAreaText = new javax.swing.JTextArea JavaDoc();
648         jPanelFont = new javax.swing.JPanel JavaDoc();
649         jPanel7 = new javax.swing.JPanel JavaDoc();
650         jLabel23 = new javax.swing.JLabel JavaDoc();
651         jComboBoxReportFont = new javax.swing.JComboBox JavaDoc();
652         jLabel24 = new javax.swing.JLabel JavaDoc();
653         jComboBoxFontName = new javax.swing.JComboBox JavaDoc();
654         jNumberComboBoxSize = new it.businesslogic.ireport.gui.JNumberComboBox();
655         jLabel27 = new javax.swing.JLabel JavaDoc();
656         jLabel25 = new javax.swing.JLabel JavaDoc();
657         jComboBoxPDFFontName = new javax.swing.JComboBox JavaDoc();
658         jPanel8 = new javax.swing.JPanel JavaDoc();
659         jPanel12 = new javax.swing.JPanel JavaDoc();
660         jCheckBoxBold = new javax.swing.JCheckBox JavaDoc();
661         jCheckBoxItalic = new javax.swing.JCheckBox JavaDoc();
662         jCheckBoxUnderline = new javax.swing.JCheckBox JavaDoc();
663         jCheckBoxStrokeTrough = new javax.swing.JCheckBox JavaDoc();
664         jCheckBoxStyledText = new javax.swing.JCheckBox JavaDoc();
665         jCheckBoxPDFEmbedded = new javax.swing.JCheckBox JavaDoc();
666         jSeparator2 = new javax.swing.JSeparator JavaDoc();
667         jLabel32 = new javax.swing.JLabel JavaDoc();
668         jComboBoxPdfEncoding = new javax.swing.JComboBox JavaDoc();
669         jComboBoxHAlign = new javax.swing.JComboBox JavaDoc();
670         jComboBoxVAlign = new javax.swing.JComboBox JavaDoc();
671         jLabel30 = new javax.swing.JLabel JavaDoc();
672         jLabel31 = new javax.swing.JLabel JavaDoc();
673         jComboBoxLineSpacing = new javax.swing.JComboBox JavaDoc();
674         jLabel29 = new javax.swing.JLabel JavaDoc();
675         jLabel49 = new javax.swing.JLabel JavaDoc();
676         jComboBoxRotation = new javax.swing.JComboBox JavaDoc();
677         jSeparator4 = new javax.swing.JSeparator JavaDoc();
678         jSeparator5 = new javax.swing.JSeparator JavaDoc();
679         jPanelTextField = new javax.swing.JPanel JavaDoc();
680         jLabel28 = new javax.swing.JLabel JavaDoc();
681         jComboBoxTextFieldExpressionClass = new javax.swing.JComboBox JavaDoc();
682         jLabel37 = new javax.swing.JLabel JavaDoc();
683         jComboBoxTextFieldEvaluationTime = new javax.swing.JComboBox JavaDoc();
684         jLabel38 = new javax.swing.JLabel JavaDoc();
685         jComboBoxTextFieldGroup = new javax.swing.JComboBox JavaDoc();
686         jCheckBoxStretchWithOverflow = new javax.swing.JCheckBox JavaDoc();
687         jCheckBoxBlankWhenNull = new javax.swing.JCheckBox JavaDoc();
688         jLabel39 = new javax.swing.JLabel JavaDoc();
689         jLabel40 = new javax.swing.JLabel JavaDoc();
690         jRTextExpressionAreaTextFieldExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
691         jPanel2 = new javax.swing.JPanel JavaDoc();
692         jComboBoxPattern = new javax.swing.JComboBox JavaDoc();
693         jButtonCreatePattern = new javax.swing.JButton JavaDoc();
694         jPanelSubreport1 = new javax.swing.JPanel JavaDoc();
695         jLabel41 = new javax.swing.JLabel JavaDoc();
696         jLabel42 = new javax.swing.JLabel JavaDoc();
697         jRTextExpressionAreaSubreportMapExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
698         jComboBoxSubreportConnectionType = new javax.swing.JComboBox JavaDoc();
699         jRTextExpressionAreaTextConnectionExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
700         jCheckBoxSubreportCache = new javax.swing.JCheckBox JavaDoc();
701         jPanelSubreport2 = new javax.swing.JPanel JavaDoc();
702         jLabel26 = new javax.swing.JLabel JavaDoc();
703         jRTextExpressionAreaSubreportExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
704         jLabel33 = new javax.swing.JLabel JavaDoc();
705         jComboBoxSubreportExpressionClass = new javax.swing.JComboBox JavaDoc();
706         jTabbedPane1 = new javax.swing.JTabbedPane JavaDoc();
707         jPanel16 = new javax.swing.JPanel JavaDoc();
708         jScrollPane2 = new javax.swing.JScrollPane JavaDoc();
709         jTableSubreportParameters = new javax.swing.JTable JavaDoc();
710         jPanel10 = new javax.swing.JPanel JavaDoc();
711         jButtonAddParameter = new javax.swing.JButton JavaDoc();
712         jButtonModParameter = new javax.swing.JButton JavaDoc();
713         jButtonRemParameter = new javax.swing.JButton JavaDoc();
714         jButtonCopyParamsFromMaster = new javax.swing.JButton JavaDoc();
715         jPanel13 = new javax.swing.JPanel JavaDoc();
716         jPanelSubreportReturnValues = new javax.swing.JPanel JavaDoc();
717         jScrollPane3 = new javax.swing.JScrollPane JavaDoc();
718         jTableSubreportReturnValues = new javax.swing.JTable JavaDoc();
719         jPanel14 = new javax.swing.JPanel JavaDoc();
720         jButtonAddReturnValue = new javax.swing.JButton JavaDoc();
721         jButtonModReturnValue = new javax.swing.JButton JavaDoc();
722         jButtonRemReturnValue = new javax.swing.JButton JavaDoc();
723         jPanel15 = new javax.swing.JPanel JavaDoc();
724         jPanelHyperLink = new javax.swing.JPanel JavaDoc();
725         jRTextExpressionAreaAnchorName = new it.businesslogic.ireport.gui.JRTextExpressionArea();
726         jLabel35 = new javax.swing.JLabel JavaDoc();
727         jSeparator3 = new javax.swing.JSeparator JavaDoc();
728         jComboBoxLinkType = new javax.swing.JComboBox JavaDoc();
729         jLabel36 = new javax.swing.JLabel JavaDoc();
730         jLabelTarget = new javax.swing.JLabel JavaDoc();
731         jComboBoxLinkTarget = new javax.swing.JComboBox JavaDoc();
732         jLabelTarget1 = new javax.swing.JLabel JavaDoc();
733         jSpinnerBookmarkLevel = new javax.swing.JSpinner JavaDoc();
734         jPanel24 = new javax.swing.JPanel JavaDoc();
735         jTabbedPane2 = new javax.swing.JTabbedPane JavaDoc();
736         jPanelReference = new javax.swing.JPanel JavaDoc();
737         jRTextExpressionAreaReference = new it.businesslogic.ireport.gui.JRTextExpressionArea();
738         jLabelReference = new javax.swing.JLabel JavaDoc();
739         jPanelAnchor = new javax.swing.JPanel JavaDoc();
740         jRTextExpressionAreaAnchor = new it.businesslogic.ireport.gui.JRTextExpressionArea();
741         jLabelAnchor = new javax.swing.JLabel JavaDoc();
742         jPanelPage = new javax.swing.JPanel JavaDoc();
743         jLabelPage = new javax.swing.JLabel JavaDoc();
744         jRTextExpressionAreaPage = new it.businesslogic.ireport.gui.JRTextExpressionArea();
745         jPanelLinkParams = new javax.swing.JPanel JavaDoc();
746         jScrollPane5 = new javax.swing.JScrollPane JavaDoc();
747         jTableLinkParameters = new javax.swing.JTable JavaDoc();
748         jPanel25 = new javax.swing.JPanel JavaDoc();
749         jButtonAddLinkParameter = new javax.swing.JButton JavaDoc();
750         jButtonModLinkParameter = new javax.swing.JButton JavaDoc();
751         jButtonRemLinkParameter = new javax.swing.JButton JavaDoc();
752         jPanelBarcode = new javax.swing.JPanel JavaDoc();
753         jLabel47 = new javax.swing.JLabel JavaDoc();
754         jComboBoxBarcodeType = new javax.swing.JComboBox JavaDoc();
755         jBarcodeExpressionArea = new it.businesslogic.ireport.gui.JRTextExpressionArea();
756         jLabel48 = new javax.swing.JLabel JavaDoc();
757         jSeparator8 = new javax.swing.JSeparator JavaDoc();
758         jComboBoxBarcodeGroup = new javax.swing.JComboBox JavaDoc();
759         jLabel43 = new javax.swing.JLabel JavaDoc();
760         jComboBoxEvaluationTimeBarcode = new javax.swing.JComboBox JavaDoc();
761         jLabel50 = new javax.swing.JLabel JavaDoc();
762         jLabel54 = new javax.swing.JLabel JavaDoc();
763         jLabel55 = new javax.swing.JLabel JavaDoc();
764         jComboBoxImageOnError1 = new javax.swing.JComboBox JavaDoc();
765         jComboBoxScale1 = new javax.swing.JComboBox JavaDoc();
766         jLabel56 = new javax.swing.JLabel JavaDoc();
767         jLabel57 = new javax.swing.JLabel JavaDoc();
768         jComboBoxVerticalAlignment1 = new javax.swing.JComboBox JavaDoc();
769         jComboBoxHorizontalAlignment1 = new javax.swing.JComboBox JavaDoc();
770         jSeparator10 = new javax.swing.JSeparator JavaDoc();
771         jPanel22 = new javax.swing.JPanel JavaDoc();
772         jLabel58 = new javax.swing.JLabel JavaDoc();
773         jLabel60 = new javax.swing.JLabel JavaDoc();
774         jLabel61 = new javax.swing.JLabel JavaDoc();
775         jNumberFieldBCWidth = new it.businesslogic.ireport.gui.JNumberField();
776         jNumberFieldBCHeight = new it.businesslogic.ireport.gui.JNumberField();
777         jBarcodeExpressionAreaAppIdentifier = new it.businesslogic.ireport.gui.JRTextExpressionArea();
778         jLabel59 = new javax.swing.JLabel JavaDoc();
779         jPanel23 = new javax.swing.JPanel JavaDoc();
780         jCheckBoxBarcodeCheckSum = new javax.swing.JCheckBox JavaDoc();
781         jCheckBoxBarcodeShowText = new javax.swing.JCheckBox JavaDoc();
782         jPanelChart = new javax.swing.JPanel JavaDoc();
783         jSeparator6 = new javax.swing.JSeparator JavaDoc();
784         jSeparator9 = new javax.swing.JSeparator JavaDoc();
785         jLabel44 = new javax.swing.JLabel JavaDoc();
786         jComboBoxEvaluationTime1 = new javax.swing.JComboBox JavaDoc();
787         jLabel45 = new javax.swing.JLabel JavaDoc();
788         jComboBoxImageGroup1 = new javax.swing.JComboBox JavaDoc();
789         jPanel9 = new javax.swing.JPanel JavaDoc();
790         jButton1 = new javax.swing.JButton JavaDoc();
791         jPanelBorder = new javax.swing.JPanel JavaDoc();
792         jPanelSheet = new javax.swing.JPanel JavaDoc();
793         jPanelCrosstab = new javax.swing.JPanel JavaDoc();
794         jLabel51 = new javax.swing.JLabel JavaDoc();
795         jRTextExpressionAreaCrosstabParametersMapExpression = new it.businesslogic.ireport.gui.JRTextExpressionArea();
796         jPanel18 = new javax.swing.JPanel JavaDoc();
797         jScrollPane4 = new javax.swing.JScrollPane JavaDoc();
798         jTableCrosstabParameters = new javax.swing.JTable JavaDoc();
799         jPanel19 = new javax.swing.JPanel JavaDoc();
800         jButtonAddCrosstabParameter = new javax.swing.JButton JavaDoc();
801         jButtonModCrosstabParameter = new javax.swing.JButton JavaDoc();
802         jButtonRemCrosstabParameter = new javax.swing.JButton JavaDoc();
803         jPanel20 = new javax.swing.JPanel JavaDoc();
804         jLabel52 = new javax.swing.JLabel JavaDoc();
805         jCheckBoxRepeatColumnHeaders = new javax.swing.JCheckBox JavaDoc();
806         jCheckBoxRepeatRowHeaders = new javax.swing.JCheckBox JavaDoc();
807         jButton2 = new javax.swing.JButton JavaDoc();
808         jPanel21 = new javax.swing.JPanel JavaDoc();
809         jNumberFieldColumnBreakOffset = new it.businesslogic.ireport.gui.JNumberField();
810         jLabel53 = new javax.swing.JLabel JavaDoc();
811
812         addWindowListener(new java.awt.event.WindowAdapter JavaDoc() {
813             public void windowClosing(java.awt.event.WindowEvent JavaDoc evt) {
814                 closeDialog(evt);
815             }
816         });
817
818         jTabbedPane.setOpaque(true);
819         jTabbedPane.setPreferredSize(new java.awt.Dimension JavaDoc(312, 48));
820         jTabbedPane.addChangeListener(new javax.swing.event.ChangeListener JavaDoc() {
821             public void stateChanged(javax.swing.event.ChangeEvent JavaDoc evt) {
822                 jTabbedPaneStateChanged(evt);
823             }
824         });
825
826         jPanelCommon.setLayout(new java.awt.GridBagLayout JavaDoc());
827
828         jPanel3.setLayout(new java.awt.GridBagLayout JavaDoc());
829
830         jPanel3.setMinimumSize(new java.awt.Dimension JavaDoc(300, 74));
831         jPanel3.setPreferredSize(new java.awt.Dimension JavaDoc(300, 74));
832         jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
833         jLabel5.setText("Height ");
834         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
835         gridBagConstraints.gridx = 2;
836         gridBagConstraints.gridy = 2;
837         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
838         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
839         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
840         jPanel3.add(jLabel5, gridBagConstraints);
841
842         jNumberFieldLeft.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
843         jNumberFieldLeft.setText("0");
844         try {
845             jNumberFieldLeft.setDecimals(0);
846         } catch (java.beans.PropertyVetoException JavaDoc e1) {
847             e1.printStackTrace();
848         }
849         try {
850             jNumberFieldLeft.setInteger(true);
851         } catch (java.beans.PropertyVetoException JavaDoc e1) {
852             e1.printStackTrace();
853         }
854         jNumberFieldLeft.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
855         jNumberFieldLeft.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
856         jNumberFieldLeft.addActionListener(new java.awt.event.ActionListener JavaDoc() {
857             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
858                 jNumberFieldLeftActionPerformed(evt);
859             }
860         });
861
862         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
863         gridBagConstraints.gridx = 1;
864         gridBagConstraints.gridy = 2;
865         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
866         gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 5, 2, 0);
867         jPanel3.add(jNumberFieldLeft, gridBagConstraints);
868
869         jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
870         jLabel4.setText("Width");
871         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
872         gridBagConstraints.gridx = 2;
873         gridBagConstraints.gridy = 1;
874         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
875         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
876         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
877         jPanel3.add(jLabel4, gridBagConstraints);
878
879         jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
880         jLabel7.setText("Background ");
881         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
882         gridBagConstraints.gridx = 4;
883         gridBagConstraints.gridy = 2;
884         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
885         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
886         jPanel3.add(jLabel7, gridBagConstraints);
887
888         jComboBoxBand.addActionListener(new java.awt.event.ActionListener JavaDoc() {
889             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
890                 jComboBoxBandActionPerformed(evt);
891             }
892         });
893
894         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
895         gridBagConstraints.gridx = 1;
896         gridBagConstraints.gridy = 0;
897         gridBagConstraints.gridwidth = 5;
898         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
899         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
900         gridBagConstraints.weightx = 1.0;
901         gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 5, 0, 6);
902         jPanel3.add(jComboBoxBand, gridBagConstraints);
903
904         jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
905         jLabel1.setText("Band ");
906         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
907         gridBagConstraints.gridx = 0;
908         gridBagConstraints.gridy = 0;
909         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
910         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
911         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 0, 0, 0);
912         jPanel3.add(jLabel1, gridBagConstraints);
913
914         jNumberFieldWidth.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
915         jNumberFieldWidth.setText("0");
916         try {
917             jNumberFieldWidth.setDecimals(0);
918         } catch (java.beans.PropertyVetoException JavaDoc e1) {
919             e1.printStackTrace();
920         }
921         try {
922             jNumberFieldWidth.setInteger(true);
923         } catch (java.beans.PropertyVetoException JavaDoc e1) {
924             e1.printStackTrace();
925         }
926         jNumberFieldWidth.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
927         jNumberFieldWidth.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
928         jNumberFieldWidth.addActionListener(new java.awt.event.ActionListener JavaDoc() {
929             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
930                 jNumberFieldWidthActionPerformed(evt);
931             }
932         });
933
934         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
935         gridBagConstraints.gridx = 3;
936         gridBagConstraints.gridy = 1;
937         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
938         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 0, 2, 0);
939         jPanel3.add(jNumberFieldWidth, gridBagConstraints);
940
941         jNumberFieldTop.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
942         jNumberFieldTop.setText("0");
943         try {
944             jNumberFieldTop.setDecimals(0);
945         } catch (java.beans.PropertyVetoException JavaDoc e1) {
946             e1.printStackTrace();
947         }
948         try {
949             jNumberFieldTop.setInteger(true);
950         } catch (java.beans.PropertyVetoException JavaDoc e1) {
951             e1.printStackTrace();
952         }
953         jNumberFieldTop.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
954         jNumberFieldTop.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
955         jNumberFieldTop.addActionListener(new java.awt.event.ActionListener JavaDoc() {
956             public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
957                 jNumberFieldTopActionPerformed(evt);
958             }
959         });
960
961         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
962         gridBagConstraints.gridx = 1;
963         gridBagConstraints.gridy = 1;
964         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
965         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 5, 2, 0);
966         jPanel3.add(jNumberFieldTop, gridBagConstraints);
967
968         jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
969         jLabel2.setText("Top ");
970         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
971         gridBagConstraints.gridx = 0;
972         gridBagConstraints.gridy = 1;
973         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
974         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
975         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 0, 0, 0);
976         jPanel3.add(jLabel2, gridBagConstraints);
977
978         jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
979         jLabel6.setText("Foreground ");
980         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
981         gridBagConstraints.gridx = 4;
982         gridBagConstraints.gridy = 1;
983         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
984         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
985         jPanel3.add(jLabel6, gridBagConstraints);
986
987         jNumberFieldHeight.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
988         jNumberFieldHeight.setText("0");
989         try {
990             jNumberFieldHeight.setDecimals(0);
991         } catch (java.beans.PropertyVetoException JavaDoc e1) {
992             e1.printStackTrace();
993         }
994         try {
995             jNumberFieldHeight.setInteger(true);
996         } catch (java.beans.PropertyVetoException JavaDoc e1) {
997             e1.printStackTrace();
998         }
999         jNumberFieldHeight.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
1000        jNumberFieldHeight.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
1001        jNumberFieldHeight.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1002            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1003                jNumberFieldHeightActionPerformed(evt);
1004            }
1005        });
1006
1007        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1008        gridBagConstraints.gridx = 3;
1009        gridBagConstraints.gridy = 2;
1010        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1011        jPanel3.add(jNumberFieldHeight, gridBagConstraints);
1012
1013        jButtonBackground.setBackground(new java.awt.Color JavaDoc(255, 255, 255));
1014        jButtonBackground.setMaximumSize(new java.awt.Dimension JavaDoc(45, 20));
1015        jButtonBackground.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
1016        jButtonBackground.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
1017        jButtonBackground.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1018            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1019                jButtonBackgroundActionPerformed(evt);
1020            }
1021        });
1022
1023        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1024        gridBagConstraints.gridx = 5;
1025        gridBagConstraints.gridy = 2;
1026        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1027        jPanel3.add(jButtonBackground, gridBagConstraints);
1028
1029        jButtonForeground.setBackground(new java.awt.Color JavaDoc(0, 0, 0));
1030        jButtonForeground.setMaximumSize(new java.awt.Dimension JavaDoc(45, 20));
1031        jButtonForeground.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
1032        jButtonForeground.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
1033        jButtonForeground.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1034            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1035                jButtonForegroundActionPerformed(evt);
1036            }
1037        });
1038
1039        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1040        gridBagConstraints.gridx = 5;
1041        gridBagConstraints.gridy = 1;
1042        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1043        jPanel3.add(jButtonForeground, gridBagConstraints);
1044
1045        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
1046        jLabel3.setText("Left ");
1047        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1048        gridBagConstraints.gridx = 0;
1049        gridBagConstraints.gridy = 2;
1050        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1051        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1052        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 0, 0, 0);
1053        jPanel3.add(jLabel3, gridBagConstraints);
1054
1055        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1056        gridBagConstraints.gridx = 0;
1057        gridBagConstraints.gridy = 0;
1058        gridBagConstraints.gridwidth = 2;
1059        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1060        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 4, 6);
1061        jPanelCommon.add(jPanel3, gridBagConstraints);
1062
1063        jPanel4.setLayout(new java.awt.GridBagLayout JavaDoc());
1064
1065        jPanel4.setMinimumSize(new java.awt.Dimension JavaDoc(170, 120));
1066        jPanel4.setPreferredSize(new java.awt.Dimension JavaDoc(190, 120));
1067        jCheckBoxTransparent.setText("Transparent");
1068        jCheckBoxTransparent.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1069            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1070                jCheckBoxTransparentActionPerformed(evt);
1071            }
1072        });
1073
1074        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1075        gridBagConstraints.gridx = 0;
1076        gridBagConstraints.gridy = 0;
1077        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1078        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1079        gridBagConstraints.weightx = 1.0;
1080        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 4);
1081        jPanel4.add(jCheckBoxTransparent, gridBagConstraints);
1082
1083        jCheckBoxRemoveLineWhenBlank.setText("Remove line when blank");
1084        jCheckBoxRemoveLineWhenBlank.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1085            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1086                jCheckBoxRemoveLineWhenBlankActionPerformed(evt);
1087            }
1088        });
1089
1090        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1091        gridBagConstraints.gridx = 0;
1092        gridBagConstraints.gridy = 1;
1093        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1094        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1095        gridBagConstraints.weightx = 1.0;
1096        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 4);
1097        jPanel4.add(jCheckBoxRemoveLineWhenBlank, gridBagConstraints);
1098
1099        jCheckBoxPrintInFirstWholeBand.setText("Print in first whole band");
1100        jCheckBoxPrintInFirstWholeBand.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1101            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1102                jCheckBoxPrintInFirstWholeBandActionPerformed(evt);
1103            }
1104        });
1105
1106        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1107        gridBagConstraints.gridx = 0;
1108        gridBagConstraints.gridy = 2;
1109        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1110        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1111        gridBagConstraints.weightx = 1.0;
1112        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 4);
1113        jPanel4.add(jCheckBoxPrintInFirstWholeBand, gridBagConstraints);
1114
1115        jCheckBoxPrintWhenDetailOverflows.setText("Print when detail overflows");
1116        jCheckBoxPrintWhenDetailOverflows.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1117            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1118                jCheckBoxPrintWhenDetailOverflowsActionPerformed(evt);
1119            }
1120        });
1121
1122        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1123        gridBagConstraints.gridx = 0;
1124        gridBagConstraints.gridy = 3;
1125        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1126        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1127        gridBagConstraints.weightx = 1.0;
1128        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 4);
1129        jPanel4.add(jCheckBoxPrintWhenDetailOverflows, gridBagConstraints);
1130
1131        jCheckBoxPrintRepeatedValues.setText("Print repeated values");
1132        jCheckBoxPrintRepeatedValues.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1133            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1134                jCheckBoxPrintRepeatedValuesActionPerformed(evt);
1135            }
1136        });
1137
1138        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1139        gridBagConstraints.gridx = 0;
1140        gridBagConstraints.gridy = 4;
1141        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1142        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1143        gridBagConstraints.weightx = 1.0;
1144        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 4);
1145        jPanel4.add(jCheckBoxPrintRepeatedValues, gridBagConstraints);
1146
1147        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1148        gridBagConstraints.gridx = 0;
1149        gridBagConstraints.gridy = 1;
1150        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1151        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1152        gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 6, 0, 0);
1153        jPanelCommon.add(jPanel4, gridBagConstraints);
1154
1155        jPanel5.setLayout(new java.awt.GridBagLayout JavaDoc());
1156
1157        jPanel5.setMinimumSize(new java.awt.Dimension JavaDoc(150, 120));
1158        jPanel5.setPreferredSize(new java.awt.Dimension JavaDoc(150, 120));
1159        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
1160        jLabel8.setText("Position type");
1161        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1162        gridBagConstraints.gridx = 0;
1163        gridBagConstraints.gridy = 0;
1164        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1165        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1166        gridBagConstraints.weightx = 1.0;
1167        jPanel5.add(jLabel8, gridBagConstraints);
1168
1169        jComboBoxPositionType.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1170            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1171                jComboBoxPositionTypeActionPerformed(evt);
1172            }
1173        });
1174
1175        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1176        gridBagConstraints.gridx = 0;
1177        gridBagConstraints.gridy = 1;
1178        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1179        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1180        gridBagConstraints.weightx = 1.0;
1181        jPanel5.add(jComboBoxPositionType, gridBagConstraints);
1182
1183        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
1184        jLabel9.setText("Print when group changes");
1185        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1186        gridBagConstraints.gridx = 0;
1187        gridBagConstraints.gridy = 2;
1188        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1189        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1190        gridBagConstraints.weightx = 1.0;
1191        jPanel5.add(jLabel9, gridBagConstraints);
1192
1193        jComboBoxGroups.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1194            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1195                jComboBoxGroupsActionPerformed(evt);
1196            }
1197        });
1198
1199        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1200        gridBagConstraints.gridx = 0;
1201        gridBagConstraints.gridy = 3;
1202        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1203        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1204        gridBagConstraints.weightx = 1.0;
1205        jPanel5.add(jComboBoxGroups, gridBagConstraints);
1206
1207        jLabel46.setText("Key");
1208        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1209        gridBagConstraints.gridx = 0;
1210        gridBagConstraints.gridy = 4;
1211        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1212        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1213        gridBagConstraints.weightx = 1.0;
1214        jPanel5.add(jLabel46, gridBagConstraints);
1215
1216        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1217        gridBagConstraints.gridx = 0;
1218        gridBagConstraints.gridy = 5;
1219        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1220        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1221        gridBagConstraints.weightx = 1.0;
1222        jPanel5.add(jTextFieldName, gridBagConstraints);
1223
1224        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1225        gridBagConstraints.gridx = 1;
1226        gridBagConstraints.gridy = 1;
1227        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1228        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1229        gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 0, 0, 4);
1230        jPanelCommon.add(jPanel5, gridBagConstraints);
1231
1232        jPanel6.setLayout(new java.awt.GridBagLayout JavaDoc());
1233
1234        jPanel6.setMinimumSize(new java.awt.Dimension JavaDoc(300, 40));
1235        jPanel6.setPreferredSize(new java.awt.Dimension JavaDoc(300, 40));
1236        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
1237        jLabel10.setText("Print when expression");
1238        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1239        gridBagConstraints.gridx = 0;
1240        gridBagConstraints.gridy = 0;
1241        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1242        jPanel6.add(jLabel10, gridBagConstraints);
1243
1244        jRTextExpressionAreaPrintWhenExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
1245        jRTextExpressionAreaPrintWhenExpression.setElectricScroll(0);
1246        jRTextExpressionAreaPrintWhenExpression.setMinimumSize(new java.awt.Dimension JavaDoc(10, 10));
1247        jRTextExpressionAreaPrintWhenExpression.setPreferredSize(new java.awt.Dimension JavaDoc(10, 10));
1248        jRTextExpressionAreaPrintWhenExpression.addInputMethodListener(new java.awt.event.InputMethodListener JavaDoc() {
1249            public void caretPositionChanged(java.awt.event.InputMethodEvent JavaDoc evt) {
1250            }
1251            public void inputMethodTextChanged(java.awt.event.InputMethodEvent JavaDoc evt) {
1252                jRTextExpressionAreaPrintWhenExpressionInputMethodTextChanged(evt);
1253            }
1254        });
1255
1256        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1257        gridBagConstraints.gridx = 0;
1258        gridBagConstraints.gridy = 1;
1259        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1260        gridBagConstraints.weightx = 1.0;
1261        gridBagConstraints.weighty = 1.0;
1262        jPanel6.add(jRTextExpressionAreaPrintWhenExpression, gridBagConstraints);
1263
1264        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1265        gridBagConstraints.gridx = 0;
1266        gridBagConstraints.gridy = 3;
1267        gridBagConstraints.gridwidth = 2;
1268        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1269        gridBagConstraints.weightx = 1.0;
1270        gridBagConstraints.weighty = 1.0;
1271        gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 6, 6, 6);
1272        jPanelCommon.add(jPanel6, gridBagConstraints);
1273
1274        jPanel11.setLayout(new java.awt.GridBagLayout JavaDoc());
1275
1276        jPanel11.setMinimumSize(new java.awt.Dimension JavaDoc(170, 46));
1277        jPanel11.setPreferredSize(new java.awt.Dimension JavaDoc(170, 46));
1278        jLabel12.setText("Stretch Type");
1279        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1280        gridBagConstraints.gridx = 0;
1281        gridBagConstraints.gridy = 2;
1282        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1283        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1284        gridBagConstraints.weightx = 1.0;
1285        jPanel11.add(jLabel12, gridBagConstraints);
1286
1287        jComboBoxStretchType.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1288        jComboBoxStretchType.setPreferredSize(new java.awt.Dimension JavaDoc(120, 20));
1289        jComboBoxStretchType.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1290            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1291                jComboBoxStretchTypeActionPerformed(evt);
1292            }
1293        });
1294
1295        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1296        gridBagConstraints.gridx = 0;
1297        gridBagConstraints.gridy = 3;
1298        gridBagConstraints.gridwidth = 2;
1299        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1300        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1301        gridBagConstraints.weightx = 1.0;
1302        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 0, 0, 0);
1303        jPanel11.add(jComboBoxStretchType, gridBagConstraints);
1304
1305        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1306        gridBagConstraints.gridx = 0;
1307        gridBagConstraints.gridy = 2;
1308        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1309        jPanelCommon.add(jPanel11, gridBagConstraints);
1310
1311        jPanel17.setLayout(new java.awt.GridBagLayout JavaDoc());
1312
1313        jPanel17.setMinimumSize(new java.awt.Dimension JavaDoc(150, 46));
1314        jPanel17.setPreferredSize(new java.awt.Dimension JavaDoc(150, 46));
1315        jLabelStyle.setText("Style");
1316        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1317        gridBagConstraints.gridx = 0;
1318        gridBagConstraints.gridy = 2;
1319        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1320        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1321        gridBagConstraints.weightx = 1.0;
1322        jPanel17.add(jLabelStyle, gridBagConstraints);
1323
1324        jComboBoxStyle.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1325        jComboBoxStyle.setPreferredSize(new java.awt.Dimension JavaDoc(120, 20));
1326        jComboBoxStyle.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1327            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1328                jComboBoxStyleActionPerformed(evt);
1329            }
1330        });
1331
1332        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1333        gridBagConstraints.gridx = 0;
1334        gridBagConstraints.gridy = 3;
1335        gridBagConstraints.gridwidth = 2;
1336        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1337        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1338        gridBagConstraints.weightx = 1.0;
1339        jPanel17.add(jComboBoxStyle, gridBagConstraints);
1340
1341        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1342        gridBagConstraints.gridx = 1;
1343        gridBagConstraints.gridy = 2;
1344        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1345        jPanelCommon.add(jPanel17, gridBagConstraints);
1346
1347        jTabbedPane.addTab("Common", jPanelCommon);
1348
1349        jPanelGraphicselement.setLayout(new java.awt.GridBagLayout JavaDoc());
1350
1351        jComboBoxFill.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
1352        jComboBoxFill.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
1353        jComboBoxFill.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1354            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1355                jComboBoxFillActionPerformed(evt);
1356            }
1357        });
1358
1359        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1360        gridBagConstraints.gridx = 0;
1361        gridBagConstraints.gridy = 5;
1362        gridBagConstraints.gridwidth = 2;
1363        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1364        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 170, 6);
1365        jPanelGraphicselement.add(jComboBoxFill, gridBagConstraints);
1366
1367        jLabel11.setText("Pen");
1368        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1369        gridBagConstraints.gridx = 0;
1370        gridBagConstraints.gridy = 0;
1371        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1372        gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 8, 0, 0);
1373        jPanelGraphicselement.add(jLabel11, gridBagConstraints);
1374
1375        jComboBoxPen.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
1376        jComboBoxPen.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
1377        jComboBoxPen.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1378            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1379                jComboBoxPenActionPerformed(evt);
1380            }
1381        });
1382
1383        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1384        gridBagConstraints.gridx = 0;
1385        gridBagConstraints.gridy = 1;
1386        gridBagConstraints.gridwidth = 2;
1387        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1388        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
1389        jPanelGraphicselement.add(jComboBoxPen, gridBagConstraints);
1390
1391        jLabel13.setText("Fill");
1392        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1393        gridBagConstraints.gridx = 0;
1394        gridBagConstraints.gridy = 4;
1395        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1396        gridBagConstraints.insets = new java.awt.Insets JavaDoc(8, 8, 0, 0);
1397        jPanelGraphicselement.add(jLabel13, gridBagConstraints);
1398
1399        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1400        gridBagConstraints.gridx = 83;
1401        gridBagConstraints.gridy = 82;
1402        gridBagConstraints.weightx = 1.0;
1403        gridBagConstraints.weighty = 1.0;
1404        jPanelGraphicselement.add(jSeparator7, gridBagConstraints);
1405
1406        jTabbedPane.addTab("Graphics Element", jPanelGraphicselement);
1407
1408        jPanelRectangle.setLayout(new java.awt.GridBagLayout JavaDoc());
1409
1410        jPanel1.setLayout(null);
1411
1412        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Rectangle radius"));
1413        jPanel1.setMinimumSize(new java.awt.Dimension JavaDoc(302, 55));
1414        jPanel1.setPreferredSize(new java.awt.Dimension JavaDoc(302, 55));
1415        jLabel14.setText("Radius");
1416        jPanel1.add(jLabel14);
1417        jLabel14.setBounds(18, 28, 44, 14);
1418
1419        jNumberFieldRadius.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
1420        try {
1421            jNumberFieldRadius.setDecimals(0);
1422        } catch (java.beans.PropertyVetoException JavaDoc e1) {
1423            e1.printStackTrace();
1424        }
1425        jNumberFieldRadius.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1426            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1427                jNumberFieldRadiusActionPerformed(evt);
1428            }
1429        });
1430
1431        jPanel1.add(jNumberFieldRadius);
1432        jNumberFieldRadius.setBounds(64, 26, 40, 19);
1433
1434        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1435        gridBagConstraints.gridx = 0;
1436        gridBagConstraints.gridy = 0;
1437        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1438        gridBagConstraints.weightx = 1.0;
1439        gridBagConstraints.weighty = 1.0;
1440        gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 6, 0, 8);
1441        jPanelRectangle.add(jPanel1, gridBagConstraints);
1442
1443        jTabbedPane.addTab("Rectangle", jPanelRectangle);
1444
1445        jPanelLine.setLayout(new java.awt.GridBagLayout JavaDoc());
1446
1447        jLabel15.setText("Line direction");
1448        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1449        gridBagConstraints.gridx = 0;
1450        gridBagConstraints.gridy = 0;
1451        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1452        gridBagConstraints.insets = new java.awt.Insets JavaDoc(12, 8, 0, 0);
1453        jPanelLine.add(jLabel15, gridBagConstraints);
1454
1455        jComboBoxLineDirection.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
1456        jComboBoxLineDirection.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
1457        jComboBoxLineDirection.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1458            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1459                jComboBoxLineDirectionActionPerformed(evt);
1460            }
1461        });
1462
1463        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1464        gridBagConstraints.gridx = 0;
1465        gridBagConstraints.gridy = 1;
1466        gridBagConstraints.gridwidth = 2;
1467        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1468        gridBagConstraints.weightx = 1.0;
1469        gridBagConstraints.weighty = 1.0;
1470        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
1471        jPanelLine.add(jComboBoxLineDirection, gridBagConstraints);
1472
1473        jTabbedPane.addTab("Line", jPanelLine);
1474
1475        jPanelImage.setLayout(new java.awt.GridBagLayout JavaDoc());
1476
1477        jRTextExpressionAreaImageExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
1478        jRTextExpressionAreaImageExpression.setElectricScroll(0);
1479        jRTextExpressionAreaImageExpression.setMinimumSize(new java.awt.Dimension JavaDoc(300, 47));
1480        jRTextExpressionAreaImageExpression.setPreferredSize(new java.awt.Dimension JavaDoc(300, 47));
1481        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1482        gridBagConstraints.gridx = 0;
1483        gridBagConstraints.gridy = 1;
1484        gridBagConstraints.gridwidth = 2;
1485        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1486        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1487        gridBagConstraints.weightx = 1.0;
1488        gridBagConstraints.weighty = 1.0;
1489        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
1490        jPanelImage.add(jRTextExpressionAreaImageExpression, gridBagConstraints);
1491
1492        jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
1493        jLabel16.setText("Image Expression");
1494        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1495        gridBagConstraints.gridx = 0;
1496        gridBagConstraints.gridy = 0;
1497        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1498        gridBagConstraints.insets = new java.awt.Insets JavaDoc(10, 8, 0, 0);
1499        jPanelImage.add(jLabel16, gridBagConstraints);
1500
1501        jButtonFindImage.setText("Find...");
1502        jButtonFindImage.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1503            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1504                jButtonFindImageActionPerformed(evt);
1505            }
1506        });
1507
1508        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1509        gridBagConstraints.gridx = 1;
1510        gridBagConstraints.gridy = 2;
1511        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
1512        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 0, 0, 6);
1513        jPanelImage.add(jButtonFindImage, gridBagConstraints);
1514
1515        jLabel17.setText("Image Expression Class");
1516        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1517        gridBagConstraints.gridx = 0;
1518        gridBagConstraints.gridy = 3;
1519        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1520        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1521        jPanelImage.add(jLabel17, gridBagConstraints);
1522
1523        jComboBoxImageExpressionClass.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
1524        jComboBoxImageExpressionClass.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
1525        jComboBoxImageExpressionClass.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1526            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1527                jComboBoxImageExpressionClassActionPerformed(evt);
1528            }
1529        });
1530
1531        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1532        gridBagConstraints.gridx = 0;
1533        gridBagConstraints.gridy = 4;
1534        gridBagConstraints.gridwidth = 2;
1535        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1536        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
1537        jPanelImage.add(jComboBoxImageExpressionClass, gridBagConstraints);
1538
1539        jLabel18.setText("Scale Image");
1540        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1541        gridBagConstraints.gridx = 0;
1542        gridBagConstraints.gridy = 5;
1543        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1544        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1545        jPanelImage.add(jLabel18, gridBagConstraints);
1546
1547        jComboBoxScale.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
1548        jComboBoxScale.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
1549        jComboBoxScale.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1550            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1551                jComboBoxScaleActionPerformed(evt);
1552            }
1553        });
1554
1555        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1556        gridBagConstraints.gridx = 0;
1557        gridBagConstraints.gridy = 6;
1558        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1559        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
1560        jPanelImage.add(jComboBoxScale, gridBagConstraints);
1561
1562        jCheckBoxImageCache.setText("Using cache");
1563        jCheckBoxImageCache.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1564            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1565                jCheckBoxImageCacheActionPerformed(evt);
1566            }
1567        });
1568
1569        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1570        gridBagConstraints.gridx = 1;
1571        gridBagConstraints.gridy = 9;
1572        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1573        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
1574        jPanelImage.add(jCheckBoxImageCache, gridBagConstraints);
1575
1576        jLabel19.setText("Vertical alignment");
1577        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1578        gridBagConstraints.gridx = 0;
1579        gridBagConstraints.gridy = 7;
1580        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1581        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1582        jPanelImage.add(jLabel19, gridBagConstraints);
1583
1584        jComboBoxVerticalAlignment.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
1585        jComboBoxVerticalAlignment.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
1586        jComboBoxVerticalAlignment.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1587            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1588                jComboBoxVerticalAlignmentActionPerformed(evt);
1589            }
1590        });
1591
1592        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1593        gridBagConstraints.gridx = 0;
1594        gridBagConstraints.gridy = 8;
1595        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1596        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
1597        jPanelImage.add(jComboBoxVerticalAlignment, gridBagConstraints);
1598
1599        jLabel20.setText("Horizontal alignment");
1600        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1601        gridBagConstraints.gridx = 1;
1602        gridBagConstraints.gridy = 7;
1603        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1604        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1605        jPanelImage.add(jLabel20, gridBagConstraints);
1606
1607        jComboBoxHorizontalAlignment.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
1608        jComboBoxHorizontalAlignment.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
1609        jComboBoxHorizontalAlignment.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1610            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1611                jComboBoxHorizontalAlignmentActionPerformed(evt);
1612            }
1613        });
1614
1615        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1616        gridBagConstraints.gridx = 1;
1617        gridBagConstraints.gridy = 8;
1618        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1619        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
1620        jPanelImage.add(jComboBoxHorizontalAlignment, gridBagConstraints);
1621
1622        jLabel21.setText("Evaluation time");
1623        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1624        gridBagConstraints.gridx = 0;
1625        gridBagConstraints.gridy = 11;
1626        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1627        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1628        jPanelImage.add(jLabel21, gridBagConstraints);
1629
1630        jComboBoxEvaluationTime.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
1631        jComboBoxEvaluationTime.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
1632        jComboBoxEvaluationTime.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1633            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1634                jComboBoxEvaluationTimeActionPerformed(evt);
1635            }
1636        });
1637
1638        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1639        gridBagConstraints.gridx = 0;
1640        gridBagConstraints.gridy = 12;
1641        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1642        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 0);
1643        jPanelImage.add(jComboBoxEvaluationTime, gridBagConstraints);
1644
1645        jLabel22.setText("Evaluation group");
1646        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1647        gridBagConstraints.gridx = 1;
1648        gridBagConstraints.gridy = 11;
1649        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1650        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1651        jPanelImage.add(jLabel22, gridBagConstraints);
1652
1653        jComboBoxImageGroup.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
1654        jComboBoxImageGroup.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
1655        jComboBoxImageGroup.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1656            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1657                jComboBoxImageGroupActionPerformed(evt);
1658            }
1659        });
1660
1661        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1662        gridBagConstraints.gridx = 1;
1663        gridBagConstraints.gridy = 12;
1664        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1665        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 6);
1666        jPanelImage.add(jComboBoxImageGroup, gridBagConstraints);
1667
1668        jSeparator1.setMinimumSize(new java.awt.Dimension JavaDoc(300, 2));
1669        jSeparator1.setPreferredSize(new java.awt.Dimension JavaDoc(300, 2));
1670        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1671        gridBagConstraints.gridx = 0;
1672        gridBagConstraints.gridy = 10;
1673        gridBagConstraints.gridwidth = 2;
1674        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1675        gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 6, 0, 6);
1676        jPanelImage.add(jSeparator1, gridBagConstraints);
1677
1678        jCheckBoxImageIsLazy.setText("Is Lazy");
1679        jCheckBoxImageIsLazy.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1680            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1681                jCheckBoxImageIsLazyActionPerformed(evt);
1682            }
1683        });
1684
1685        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1686        gridBagConstraints.gridx = 0;
1687        gridBagConstraints.gridy = 9;
1688        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1689        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
1690        jPanelImage.add(jCheckBoxImageIsLazy, gridBagConstraints);
1691
1692        jLabel34.setText("On error type");
1693        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1694        gridBagConstraints.gridx = 1;
1695        gridBagConstraints.gridy = 5;
1696        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1697        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
1698        jPanelImage.add(jLabel34, gridBagConstraints);
1699
1700        jComboBoxImageOnError.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
1701        jComboBoxImageOnError.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
1702        jComboBoxImageOnError.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1703            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1704                jComboBoxImageOnErrorActionPerformed(evt);
1705            }
1706        });
1707
1708        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1709        gridBagConstraints.gridx = 1;
1710        gridBagConstraints.gridy = 6;
1711        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1712        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
1713        jPanelImage.add(jComboBoxImageOnError, gridBagConstraints);
1714
1715        jTabbedPane.addTab("Image", jPanelImage);
1716
1717        jPanelText.setLayout(new java.awt.BorderLayout JavaDoc(15, 15));
1718
1719        jTextAreaText.addInputMethodListener(new java.awt.event.InputMethodListener JavaDoc() {
1720            public void caretPositionChanged(java.awt.event.InputMethodEvent JavaDoc evt) {
1721            }
1722            public void inputMethodTextChanged(java.awt.event.InputMethodEvent JavaDoc evt) {
1723                jTextAreaTextInputMethodTextChanged(evt);
1724            }
1725        });
1726
1727        jScrollPane1.setViewportView(jTextAreaText);
1728
1729        jPanelText.add(jScrollPane1, java.awt.BorderLayout.CENTER);
1730
1731        jTabbedPane.addTab("Text", jPanelText);
1732
1733        jPanelFont.setLayout(new java.awt.GridBagLayout JavaDoc());
1734
1735        jPanel7.setLayout(new java.awt.GridBagLayout JavaDoc());
1736
1737        jPanel7.setMinimumSize(new java.awt.Dimension JavaDoc(300, 100));
1738        jPanel7.setPreferredSize(new java.awt.Dimension JavaDoc(300, 120));
1739        jLabel23.setText("Report font");
1740        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1741        gridBagConstraints.gridx = 0;
1742        gridBagConstraints.gridy = 0;
1743        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1744        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 2, 0, 0);
1745        jPanel7.add(jLabel23, gridBagConstraints);
1746
1747        jComboBoxReportFont.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
1748        jComboBoxReportFont.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
1749        jComboBoxReportFont.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1750            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1751                jComboBoxReportFontActionPerformed(evt);
1752            }
1753        });
1754
1755        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1756        gridBagConstraints.gridx = 0;
1757        gridBagConstraints.gridy = 1;
1758        gridBagConstraints.gridwidth = 2;
1759        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1760        jPanel7.add(jComboBoxReportFont, gridBagConstraints);
1761
1762        jLabel24.setText("Font name");
1763        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1764        gridBagConstraints.gridx = 0;
1765        gridBagConstraints.gridy = 2;
1766        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1767        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 2, 0, 0);
1768        jPanel7.add(jLabel24, gridBagConstraints);
1769
1770        jComboBoxFontName.setMinimumSize(new java.awt.Dimension JavaDoc(244, 20));
1771        jComboBoxFontName.setPreferredSize(new java.awt.Dimension JavaDoc(244, 20));
1772        jComboBoxFontName.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1773            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1774                jComboBoxFontNameActionPerformed(evt);
1775            }
1776        });
1777
1778        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1779        gridBagConstraints.gridx = 0;
1780        gridBagConstraints.gridy = 3;
1781        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1782        jPanel7.add(jComboBoxFontName, gridBagConstraints);
1783
1784        jNumberComboBoxSize.setMinimumSize(new java.awt.Dimension JavaDoc(50, 20));
1785        jNumberComboBoxSize.setPreferredSize(new java.awt.Dimension JavaDoc(50, 20));
1786        jNumberComboBoxSize.addItemListener(new java.awt.event.ItemListener JavaDoc() {
1787            public void itemStateChanged(java.awt.event.ItemEvent JavaDoc evt) {
1788                jNumberComboBoxSizeItemStateChanged(evt);
1789            }
1790        });
1791        jNumberComboBoxSize.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1792            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1793                jNumberComboBoxSizeActionPerformed(evt);
1794            }
1795        });
1796
1797        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1798        gridBagConstraints.gridx = 1;
1799        gridBagConstraints.gridy = 3;
1800        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1801        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 0);
1802        jPanel7.add(jNumberComboBoxSize, gridBagConstraints);
1803
1804        jLabel27.setText("Size");
1805        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1806        gridBagConstraints.gridx = 1;
1807        gridBagConstraints.gridy = 2;
1808        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1809        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 8, 0, 0);
1810        jPanel7.add(jLabel27, gridBagConstraints);
1811
1812        jLabel25.setText("PDF font name");
1813        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1814        gridBagConstraints.gridx = 0;
1815        gridBagConstraints.gridy = 4;
1816        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1817        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 2, 0, 0);
1818        jPanel7.add(jLabel25, gridBagConstraints);
1819
1820        jComboBoxPDFFontName.setEditable(true);
1821        jComboBoxPDFFontName.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
1822        jComboBoxPDFFontName.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
1823        jComboBoxPDFFontName.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1824            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1825                jComboBoxPDFFontNameActionPerformed(evt);
1826            }
1827        });
1828
1829        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1830        gridBagConstraints.gridx = 0;
1831        gridBagConstraints.gridy = 5;
1832        gridBagConstraints.gridwidth = 2;
1833        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1834        jPanel7.add(jComboBoxPDFFontName, gridBagConstraints);
1835
1836        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1837        gridBagConstraints.gridx = 0;
1838        gridBagConstraints.gridy = 0;
1839        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
1840        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1841        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 0);
1842        jPanelFont.add(jPanel7, gridBagConstraints);
1843
1844        jPanel8.setLayout(new java.awt.GridBagLayout JavaDoc());
1845
1846        jPanel8.setMinimumSize(new java.awt.Dimension JavaDoc(300, 150));
1847        jPanel8.setPreferredSize(new java.awt.Dimension JavaDoc(300, 170));
1848        jPanel12.setLayout(new java.awt.GridBagLayout JavaDoc());
1849
1850        jCheckBoxBold.setText("Bold");
1851        jCheckBoxBold.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1852        jCheckBoxBold.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
1853        jCheckBoxBold.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1854            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1855                jCheckBoxBoldActionPerformed(evt);
1856            }
1857        });
1858
1859        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1860        gridBagConstraints.gridx = 0;
1861        gridBagConstraints.gridy = 0;
1862        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1863        jPanel12.add(jCheckBoxBold, gridBagConstraints);
1864
1865        jCheckBoxItalic.setText("Italic");
1866        jCheckBoxItalic.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1867        jCheckBoxItalic.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
1868        jCheckBoxItalic.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1869            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1870                jCheckBoxItalicActionPerformed(evt);
1871            }
1872        });
1873
1874        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1875        gridBagConstraints.gridx = 0;
1876        gridBagConstraints.gridy = 1;
1877        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1878        jPanel12.add(jCheckBoxItalic, gridBagConstraints);
1879
1880        jCheckBoxUnderline.setText("Underline");
1881        jCheckBoxUnderline.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1882        jCheckBoxUnderline.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
1883        jCheckBoxUnderline.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1884            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1885                jCheckBoxUnderlineActionPerformed(evt);
1886            }
1887        });
1888
1889        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1890        gridBagConstraints.gridx = 0;
1891        gridBagConstraints.gridy = 2;
1892        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1893        jPanel12.add(jCheckBoxUnderline, gridBagConstraints);
1894
1895        jCheckBoxStrokeTrough.setText("Strike Trough");
1896        jCheckBoxStrokeTrough.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1897        jCheckBoxStrokeTrough.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
1898        jCheckBoxStrokeTrough.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1899            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1900                jCheckBoxStrokeTroughActionPerformed(evt);
1901            }
1902        });
1903
1904        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1905        gridBagConstraints.gridx = 0;
1906        gridBagConstraints.gridy = 3;
1907        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1908        jPanel12.add(jCheckBoxStrokeTrough, gridBagConstraints);
1909
1910        jCheckBoxStyledText.setText("Is styled text");
1911        jCheckBoxStyledText.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1912            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1913                jCheckBoxStyledTextActionPerformed(evt);
1914            }
1915        });
1916
1917        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1918        gridBagConstraints.gridx = 0;
1919        gridBagConstraints.gridy = 5;
1920        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1921        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
1922        jPanel12.add(jCheckBoxStyledText, gridBagConstraints);
1923
1924        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1925        gridBagConstraints.gridx = 0;
1926        gridBagConstraints.gridy = 0;
1927        gridBagConstraints.gridheight = 6;
1928        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1929        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
1930        jPanel8.add(jPanel12, gridBagConstraints);
1931
1932        jCheckBoxPDFEmbedded.setText("PDF Embedded");
1933        jCheckBoxPDFEmbedded.setMaximumSize(new java.awt.Dimension JavaDoc(100, 20));
1934        jCheckBoxPDFEmbedded.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
1935        jCheckBoxPDFEmbedded.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
1936        jCheckBoxPDFEmbedded.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1937            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1938                jCheckBoxPDFEmbeddedActionPerformed(evt);
1939            }
1940        });
1941
1942        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1943        gridBagConstraints.gridx = 0;
1944        gridBagConstraints.gridy = 7;
1945        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1946        jPanel8.add(jCheckBoxPDFEmbedded, gridBagConstraints);
1947
1948        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1949        gridBagConstraints.gridx = 0;
1950        gridBagConstraints.gridy = 6;
1951        gridBagConstraints.gridwidth = 3;
1952        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
1953        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1954        gridBagConstraints.weightx = 1.0;
1955        gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 0, 0, 0);
1956        jPanel8.add(jSeparator2, gridBagConstraints);
1957
1958        jLabel32.setText("PDF Encoding");
1959        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1960        gridBagConstraints.gridx = 1;
1961        gridBagConstraints.gridy = 7;
1962        gridBagConstraints.gridwidth = 2;
1963        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
1964        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 2, 0, 0);
1965        jPanel8.add(jLabel32, gridBagConstraints);
1966
1967        jComboBoxPdfEncoding.setEditable(true);
1968        jComboBoxPdfEncoding.setMinimumSize(new java.awt.Dimension JavaDoc(200, 20));
1969        jComboBoxPdfEncoding.setPreferredSize(new java.awt.Dimension JavaDoc(200, 20));
1970        jComboBoxPdfEncoding.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1971            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1972                jComboBoxPdfEncodingActionPerformed(evt);
1973            }
1974        });
1975
1976        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1977        gridBagConstraints.gridx = 1;
1978        gridBagConstraints.gridy = 8;
1979        gridBagConstraints.gridwidth = 2;
1980        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1981        jPanel8.add(jComboBoxPdfEncoding, gridBagConstraints);
1982
1983        jComboBoxHAlign.setMinimumSize(new java.awt.Dimension JavaDoc(95, 20));
1984        jComboBoxHAlign.setPreferredSize(new java.awt.Dimension JavaDoc(95, 20));
1985        jComboBoxHAlign.addActionListener(new java.awt.event.ActionListener JavaDoc() {
1986            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
1987                jComboBoxHAlignActionPerformed(evt);
1988            }
1989        });
1990
1991        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
1992        gridBagConstraints.gridx = 1;
1993        gridBagConstraints.gridy = 3;
1994        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
1995        jPanel8.add(jComboBoxHAlign, gridBagConstraints);
1996
1997        jComboBoxVAlign.setMinimumSize(new java.awt.Dimension JavaDoc(95, 20));
1998        jComboBoxVAlign.setPreferredSize(new java.awt.Dimension JavaDoc(95, 20));
1999        jComboBoxVAlign.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2000            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2001                jComboBoxVAlignActionPerformed(evt);
2002            }
2003        });
2004
2005        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2006        gridBagConstraints.gridx = 2;
2007        gridBagConstraints.gridy = 3;
2008        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2009        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 10, 0, 0);
2010        jPanel8.add(jComboBoxVAlign, gridBagConstraints);
2011
2012        jLabel30.setText("Horizontal align");
2013        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2014        gridBagConstraints.gridx = 1;
2015        gridBagConstraints.gridy = 2;
2016        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2017        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 2, 0, 0);
2018        jPanel8.add(jLabel30, gridBagConstraints);
2019
2020        jLabel31.setText("Vertical align");
2021        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2022        gridBagConstraints.gridx = 2;
2023        gridBagConstraints.gridy = 2;
2024        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2025        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 12, 0, 0);
2026        jPanel8.add(jLabel31, gridBagConstraints);
2027
2028        jComboBoxLineSpacing.setMinimumSize(new java.awt.Dimension JavaDoc(200, 20));
2029        jComboBoxLineSpacing.setPreferredSize(new java.awt.Dimension JavaDoc(200, 20));
2030        jComboBoxLineSpacing.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2031            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2032                jComboBoxLineSpacingActionPerformed(evt);
2033            }
2034        });
2035
2036        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2037        gridBagConstraints.gridx = 1;
2038        gridBagConstraints.gridy = 1;
2039        gridBagConstraints.gridwidth = 2;
2040        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2041        jPanel8.add(jComboBoxLineSpacing, gridBagConstraints);
2042
2043        jLabel29.setText("Line spacing");
2044        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2045        gridBagConstraints.gridx = 1;
2046        gridBagConstraints.gridy = 0;
2047        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2048        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 2, 0, 0);
2049        jPanel8.add(jLabel29, gridBagConstraints);
2050
2051        jLabel49.setText("Rotation");
2052        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2053        gridBagConstraints.gridx = 1;
2054        gridBagConstraints.gridy = 4;
2055        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2056        jPanel8.add(jLabel49, gridBagConstraints);
2057
2058        jComboBoxRotation.setMinimumSize(new java.awt.Dimension JavaDoc(200, 20));
2059        jComboBoxRotation.setPreferredSize(new java.awt.Dimension JavaDoc(200, 20));
2060        jComboBoxRotation.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2061            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2062                jComboBoxRotationActionPerformed(evt);
2063            }
2064        });
2065
2066        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2067        gridBagConstraints.gridx = 1;
2068        gridBagConstraints.gridy = 5;
2069        gridBagConstraints.gridwidth = 2;
2070        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2071        jPanel8.add(jComboBoxRotation, gridBagConstraints);
2072
2073        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2074        gridBagConstraints.gridx = 0;
2075        gridBagConstraints.gridy = 1;
2076        gridBagConstraints.ipady = -13;
2077        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 0);
2078        jPanelFont.add(jPanel8, gridBagConstraints);
2079
2080        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2081        gridBagConstraints.gridx = 99;
2082        gridBagConstraints.gridy = 0;
2083        gridBagConstraints.weightx = 1.0;
2084        jPanelFont.add(jSeparator4, gridBagConstraints);
2085
2086        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2087        gridBagConstraints.gridx = 0;
2088        gridBagConstraints.gridy = 99;
2089        gridBagConstraints.weighty = 1.0;
2090        jPanelFont.add(jSeparator5, gridBagConstraints);
2091
2092        jTabbedPane.addTab("Font", jPanelFont);
2093
2094        jPanelTextField.setLayout(new java.awt.GridBagLayout JavaDoc());
2095
2096        jLabel28.setText("Textfield Expression Class");
2097        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2098        gridBagConstraints.gridx = 0;
2099        gridBagConstraints.gridy = 0;
2100        gridBagConstraints.gridwidth = 2;
2101        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2102        gridBagConstraints.insets = new java.awt.Insets JavaDoc(10, 8, 0, 0);
2103        jPanelTextField.add(jLabel28, gridBagConstraints);
2104
2105        jComboBoxTextFieldExpressionClass.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
2106        jComboBoxTextFieldExpressionClass.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
2107        jComboBoxTextFieldExpressionClass.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2108            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2109                jComboBoxTextFieldExpressionClassActionPerformed(evt);
2110            }
2111        });
2112
2113        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2114        gridBagConstraints.gridx = 0;
2115        gridBagConstraints.gridy = 1;
2116        gridBagConstraints.gridwidth = 2;
2117        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2118        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2119        jPanelTextField.add(jComboBoxTextFieldExpressionClass, gridBagConstraints);
2120
2121        jLabel37.setText("Evaluation time");
2122        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2123        gridBagConstraints.gridx = 0;
2124        gridBagConstraints.gridy = 2;
2125        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2126        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 8, 0, 0);
2127        jPanelTextField.add(jLabel37, gridBagConstraints);
2128
2129        jComboBoxTextFieldEvaluationTime.setMinimumSize(new java.awt.Dimension JavaDoc(147, 20));
2130        jComboBoxTextFieldEvaluationTime.setPreferredSize(new java.awt.Dimension JavaDoc(147, 20));
2131        jComboBoxTextFieldEvaluationTime.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2132            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2133                jComboBoxTextFieldEvaluationTimeActionPerformed(evt);
2134            }
2135        });
2136
2137        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2138        gridBagConstraints.gridx = 0;
2139        gridBagConstraints.gridy = 3;
2140        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2141        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 0);
2142        jPanelTextField.add(jComboBoxTextFieldEvaluationTime, gridBagConstraints);
2143
2144        jLabel38.setText("Evaluation group");
2145        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2146        gridBagConstraints.gridx = 1;
2147        gridBagConstraints.gridy = 2;
2148        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2149        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 0);
2150        jPanelTextField.add(jLabel38, gridBagConstraints);
2151
2152        jComboBoxTextFieldGroup.setMinimumSize(new java.awt.Dimension JavaDoc(147, 20));
2153        jComboBoxTextFieldGroup.setPreferredSize(new java.awt.Dimension JavaDoc(147, 20));
2154        jComboBoxTextFieldGroup.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2155            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2156                jComboBoxTextFieldGroupActionPerformed(evt);
2157            }
2158        });
2159
2160        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2161        gridBagConstraints.gridx = 1;
2162        gridBagConstraints.gridy = 3;
2163        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2164        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2165        jPanelTextField.add(jComboBoxTextFieldGroup, gridBagConstraints);
2166
2167        jCheckBoxStretchWithOverflow.setText("Stretch with overflow");
2168        jCheckBoxStretchWithOverflow.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2169            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2170                jCheckBoxStretchWithOverflowActionPerformed(evt);
2171            }
2172        });
2173
2174        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2175        gridBagConstraints.gridx = 0;
2176        gridBagConstraints.gridy = 4;
2177        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2178        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 0);
2179        jPanelTextField.add(jCheckBoxStretchWithOverflow, gridBagConstraints);
2180
2181        jCheckBoxBlankWhenNull.setText("Blank when null");
2182        jCheckBoxBlankWhenNull.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2183            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2184                jCheckBoxBlankWhenNullActionPerformed(evt);
2185            }
2186        });
2187
2188        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2189        gridBagConstraints.gridx = 1;
2190        gridBagConstraints.gridy = 4;
2191        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2192        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 8);
2193        jPanelTextField.add(jCheckBoxBlankWhenNull, gridBagConstraints);
2194
2195        jLabel39.setText("Pattern");
2196        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2197        gridBagConstraints.gridx = 0;
2198        gridBagConstraints.gridy = 5;
2199        gridBagConstraints.gridwidth = 2;
2200        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2201        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 8, 0, 0);
2202        jPanelTextField.add(jLabel39, gridBagConstraints);
2203
2204        jLabel40.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2205        jLabel40.setText("Textfield expression");
2206        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2207        gridBagConstraints.gridx = 0;
2208        gridBagConstraints.gridy = 7;
2209        gridBagConstraints.gridwidth = 2;
2210        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2211        gridBagConstraints.insets = new java.awt.Insets JavaDoc(8, 8, 0, 142);
2212        jPanelTextField.add(jLabel40, gridBagConstraints);
2213
2214        jRTextExpressionAreaTextFieldExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2215        jRTextExpressionAreaTextFieldExpression.setAutoscrolls(true);
2216        jRTextExpressionAreaTextFieldExpression.setElectricScroll(0);
2217        jRTextExpressionAreaTextFieldExpression.setMinimumSize(new java.awt.Dimension JavaDoc(0, 0));
2218        jRTextExpressionAreaTextFieldExpression.setPreferredSize(new java.awt.Dimension JavaDoc(0, 0));
2219        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2220        gridBagConstraints.gridx = 0;
2221        gridBagConstraints.gridy = 8;
2222        gridBagConstraints.gridwidth = 2;
2223        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2224        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2225        gridBagConstraints.weightx = 1.0;
2226        gridBagConstraints.weighty = 1.0;
2227        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 6);
2228        jPanelTextField.add(jRTextExpressionAreaTextFieldExpression, gridBagConstraints);
2229
2230        jPanel2.setLayout(new java.awt.GridBagLayout JavaDoc());
2231
2232        jPanel2.setPreferredSize(new java.awt.Dimension JavaDoc(300, 23));
2233        jPanel2.setMinimumSize(new java.awt.Dimension JavaDoc(100, 43));
2234        jComboBoxPattern.setEditable(true);
2235        jComboBoxPattern.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
2236        jComboBoxPattern.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
2237        jComboBoxPattern.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2238            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2239                jComboBoxPatternActionPerformed(evt);
2240            }
2241        });
2242        jComboBoxPattern.addFocusListener(new java.awt.event.FocusAdapter JavaDoc() {
2243            public void focusLost(java.awt.event.FocusEvent JavaDoc evt) {
2244                jComboBoxPatternFocusLost(evt);
2245            }
2246        });
2247        jComboBoxPattern.addInputMethodListener(new java.awt.event.InputMethodListener JavaDoc() {
2248            public void caretPositionChanged(java.awt.event.InputMethodEvent JavaDoc evt) {
2249            }
2250            public void inputMethodTextChanged(java.awt.event.InputMethodEvent JavaDoc evt) {
2251                jComboBoxPatternInputMethodTextChanged(evt);
2252            }
2253        });
2254
2255        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2256        gridBagConstraints.gridx = 0;
2257        gridBagConstraints.gridy = 0;
2258        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2259        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2260        gridBagConstraints.weightx = 1.0;
2261        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 6);
2262        jPanel2.add(jComboBoxPattern, gridBagConstraints);
2263
2264        jButtonCreatePattern.setText("Create...");
2265        jButtonCreatePattern.setPreferredSize(new java.awt.Dimension JavaDoc(80, 23));
2266        jButtonCreatePattern.setMaximumSize(new java.awt.Dimension JavaDoc(300, 23));
2267        jButtonCreatePattern.setMinimumSize(new java.awt.Dimension JavaDoc(80, 23));
2268        jButtonCreatePattern.setMargin(new java.awt.Insets JavaDoc(2, 4, 2, 4));
2269        jButtonCreatePattern.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2270            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2271                jButtonCreatePatternActionPerformed(evt);
2272            }
2273        });
2274
2275        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2276        gridBagConstraints.gridx = 1;
2277        gridBagConstraints.gridy = 0;
2278        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2279        jPanel2.add(jButtonCreatePattern, gridBagConstraints);
2280
2281        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2282        gridBagConstraints.gridx = 0;
2283        gridBagConstraints.gridy = 6;
2284        gridBagConstraints.gridwidth = 2;
2285        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2286        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 0, 0, 20);
2287        jPanelTextField.add(jPanel2, gridBagConstraints);
2288
2289        jTabbedPane.addTab("Text Field", jPanelTextField);
2290
2291        jPanelSubreport1.setLayout(new java.awt.GridBagLayout JavaDoc());
2292
2293        jLabel41.setText("Connection / Datasource Expression");
2294        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2295        gridBagConstraints.gridx = 0;
2296        gridBagConstraints.gridy = 2;
2297        gridBagConstraints.gridwidth = 2;
2298        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2299        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 0);
2300        jPanelSubreport1.add(jLabel41, gridBagConstraints);
2301
2302        jLabel42.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2303        jLabel42.setText("Parameters Map Expression");
2304        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2305        gridBagConstraints.gridx = 0;
2306        gridBagConstraints.gridy = 0;
2307        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2308        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 6, 0, 0);
2309        jPanelSubreport1.add(jLabel42, gridBagConstraints);
2310
2311        jRTextExpressionAreaSubreportMapExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2312        jRTextExpressionAreaSubreportMapExpression.setElectricScroll(0);
2313        jRTextExpressionAreaSubreportMapExpression.setMinimumSize(new java.awt.Dimension JavaDoc(0, 0));
2314        jRTextExpressionAreaSubreportMapExpression.setPreferredSize(new java.awt.Dimension JavaDoc(0, 0));
2315        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2316        gridBagConstraints.gridx = 0;
2317        gridBagConstraints.gridy = 1;
2318        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2319        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2320        gridBagConstraints.weightx = 1.0;
2321        gridBagConstraints.weighty = 1.0;
2322        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2323        jPanelSubreport1.add(jRTextExpressionAreaSubreportMapExpression, gridBagConstraints);
2324
2325        jComboBoxSubreportConnectionType.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
2326        jComboBoxSubreportConnectionType.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
2327        jComboBoxSubreportConnectionType.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2328            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2329                jComboBoxSubreportConnectionTypeActionPerformed(evt);
2330            }
2331        });
2332
2333        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2334        gridBagConstraints.gridx = 0;
2335        gridBagConstraints.gridy = 3;
2336        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2337        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2338        jPanelSubreport1.add(jComboBoxSubreportConnectionType, gridBagConstraints);
2339
2340        jRTextExpressionAreaTextConnectionExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2341        jRTextExpressionAreaTextConnectionExpression.setEnabled(false);
2342        jRTextExpressionAreaTextConnectionExpression.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
2343        jRTextExpressionAreaTextConnectionExpression.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2344        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2345        gridBagConstraints.gridx = 0;
2346        gridBagConstraints.gridy = 4;
2347        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2348        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2349        gridBagConstraints.weightx = 1.0;
2350        gridBagConstraints.weighty = 1.0;
2351        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2352        jPanelSubreport1.add(jRTextExpressionAreaTextConnectionExpression, gridBagConstraints);
2353
2354        jCheckBoxSubreportCache.setSelected(true);
2355        jCheckBoxSubreportCache.setText("Using cache");
2356        jCheckBoxSubreportCache.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2357            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2358                jCheckBoxSubreportCacheActionPerformed(evt);
2359            }
2360        });
2361
2362        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2363        gridBagConstraints.gridx = 0;
2364        gridBagConstraints.gridy = 5;
2365        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2366        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 0);
2367        jPanelSubreport1.add(jCheckBoxSubreportCache, gridBagConstraints);
2368
2369        jTabbedPane.addTab("Subreport", jPanelSubreport1);
2370
2371        jPanelSubreport2.setLayout(new java.awt.GridBagLayout JavaDoc());
2372
2373        jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2374        jLabel26.setText("Subreport Expression");
2375        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2376        gridBagConstraints.gridx = 0;
2377        gridBagConstraints.gridy = 2;
2378        gridBagConstraints.gridwidth = 3;
2379        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2380        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 8, 0, 0);
2381        jPanelSubreport2.add(jLabel26, gridBagConstraints);
2382
2383        jRTextExpressionAreaSubreportExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2384        jRTextExpressionAreaSubreportExpression.setElectricScroll(0);
2385        jRTextExpressionAreaSubreportExpression.setMinimumSize(new java.awt.Dimension JavaDoc(0, 0));
2386        jRTextExpressionAreaSubreportExpression.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2387        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2388        gridBagConstraints.gridx = 0;
2389        gridBagConstraints.gridy = 3;
2390        gridBagConstraints.gridwidth = 3;
2391        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2392        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2393        gridBagConstraints.weightx = 1.0;
2394        gridBagConstraints.weighty = 1.0;
2395        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2396        jPanelSubreport2.add(jRTextExpressionAreaSubreportExpression, gridBagConstraints);
2397
2398        jLabel33.setText("Subreport Expression Class");
2399        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2400        gridBagConstraints.gridx = 0;
2401        gridBagConstraints.gridy = 0;
2402        gridBagConstraints.gridwidth = 3;
2403        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2404        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 8, 0, 0);
2405        jPanelSubreport2.add(jLabel33, gridBagConstraints);
2406
2407        jComboBoxSubreportExpressionClass.setMinimumSize(new java.awt.Dimension JavaDoc(300, 20));
2408        jComboBoxSubreportExpressionClass.setPreferredSize(new java.awt.Dimension JavaDoc(300, 20));
2409        jComboBoxSubreportExpressionClass.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2410            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2411                jComboBoxSubreportExpressionClassActionPerformed(evt);
2412            }
2413        });
2414
2415        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2416        gridBagConstraints.gridx = 0;
2417        gridBagConstraints.gridy = 1;
2418        gridBagConstraints.gridwidth = 3;
2419        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2420        gridBagConstraints.weightx = 1.0;
2421        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 0);
2422        jPanelSubreport2.add(jComboBoxSubreportExpressionClass, gridBagConstraints);
2423
2424        jPanel16.setLayout(new java.awt.GridBagLayout JavaDoc());
2425
2426        jScrollPane2.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
2427        jScrollPane2.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2428        jTableSubreportParameters.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
2429            new Object JavaDoc [][] {
2430
2431            },
2432            new String JavaDoc [] {
2433                "Parameter", "Expression"
2434            }
2435        ) {
2436            boolean[] canEdit = new boolean [] {
2437                false, false
2438            };
2439
2440            public boolean isCellEditable(int rowIndex, int columnIndex) {
2441                return canEdit [columnIndex];
2442            }
2443        });
2444        jTableSubreportParameters.addMouseListener(new java.awt.event.MouseAdapter JavaDoc() {
2445            public void mouseClicked(java.awt.event.MouseEvent JavaDoc evt) {
2446                jTableSubreportParametersMouseClicked(evt);
2447            }
2448        });
2449
2450        jScrollPane2.setViewportView(jTableSubreportParameters);
2451
2452        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2453        gridBagConstraints.gridx = 0;
2454        gridBagConstraints.gridy = 7;
2455        gridBagConstraints.gridwidth = 3;
2456        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2457        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2458        gridBagConstraints.weightx = 1.0;
2459        gridBagConstraints.weighty = 1.0;
2460        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2461        jPanel16.add(jScrollPane2, gridBagConstraints);
2462
2463        jPanel10.setLayout(new java.awt.GridBagLayout JavaDoc());
2464
2465        jButtonAddParameter.setText("Add");
2466        jButtonAddParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2467            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2468                jButtonAddParameterActionPerformed(evt);
2469            }
2470        });
2471
2472        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2473        gridBagConstraints.gridx = 0;
2474        gridBagConstraints.gridy = 0;
2475        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2476        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 0, 6, 0);
2477        jPanel10.add(jButtonAddParameter, gridBagConstraints);
2478
2479        jButtonModParameter.setText("Modify");
2480        jButtonModParameter.setEnabled(false);
2481        jButtonModParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2482            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2483                jButtonModParameterActionPerformed(evt);
2484            }
2485        });
2486
2487        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2488        gridBagConstraints.gridx = 1;
2489        gridBagConstraints.gridy = 0;
2490        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2491        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2492        jPanel10.add(jButtonModParameter, gridBagConstraints);
2493
2494        jButtonRemParameter.setText("Remove");
2495        jButtonRemParameter.setEnabled(false);
2496        jButtonRemParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2497            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2498                jButtonRemParameterActionPerformed(evt);
2499            }
2500        });
2501
2502        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2503        gridBagConstraints.gridx = 2;
2504        gridBagConstraints.gridy = 0;
2505        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2506        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2507        jPanel10.add(jButtonRemParameter, gridBagConstraints);
2508
2509        jButtonCopyParamsFromMaster.setText("Copy from master");
2510        jButtonCopyParamsFromMaster.setToolTipText("Pass all the not-builtin parameters to the subreport");
2511        jButtonCopyParamsFromMaster.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2512            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2513                jButtonCopyParamsFromMasterActionPerformed(evt);
2514            }
2515        });
2516
2517        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2518        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2519        jPanel10.add(jButtonCopyParamsFromMaster, gridBagConstraints);
2520
2521        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2522        gridBagConstraints.gridx = 4;
2523        gridBagConstraints.weightx = 1.0;
2524        jPanel10.add(jPanel13, gridBagConstraints);
2525
2526        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2527        gridBagConstraints.gridy = 9;
2528        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2529        gridBagConstraints.weightx = 1.0;
2530        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 6);
2531        jPanel16.add(jPanel10, gridBagConstraints);
2532
2533        jTabbedPane1.addTab("Subreport parameters", jPanel16);
2534
2535        jPanelSubreportReturnValues.setLayout(new java.awt.GridBagLayout JavaDoc());
2536
2537        jScrollPane3.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
2538        jScrollPane3.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2539        jTableSubreportReturnValues.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
2540            new Object JavaDoc [][] {
2541
2542            },
2543            new String JavaDoc [] {
2544                "Subreport variable", "Destination variable"
2545            }
2546        ) {
2547            boolean[] canEdit = new boolean [] {
2548                false, false
2549            };
2550
2551            public boolean isCellEditable(int rowIndex, int columnIndex) {
2552                return canEdit [columnIndex];
2553            }
2554        });
2555        jTableSubreportReturnValues.addMouseListener(new java.awt.event.MouseAdapter JavaDoc() {
2556            public void mouseClicked(java.awt.event.MouseEvent JavaDoc evt) {
2557                jTableSubreportReturnValuesMouseClicked(evt);
2558            }
2559        });
2560
2561        jScrollPane3.setViewportView(jTableSubreportReturnValues);
2562
2563        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2564        gridBagConstraints.gridx = 0;
2565        gridBagConstraints.gridy = 7;
2566        gridBagConstraints.gridwidth = 3;
2567        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2568        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2569        gridBagConstraints.weightx = 1.0;
2570        gridBagConstraints.weighty = 1.0;
2571        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2572        jPanelSubreportReturnValues.add(jScrollPane3, gridBagConstraints);
2573
2574        jPanel14.setLayout(new java.awt.GridBagLayout JavaDoc());
2575
2576        jButtonAddReturnValue.setText("Add");
2577        jButtonAddReturnValue.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2578            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2579                jButtonAddReturnValueActionPerformed(evt);
2580            }
2581        });
2582
2583        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2584        gridBagConstraints.gridx = 0;
2585        gridBagConstraints.gridy = 0;
2586        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2587        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 0, 6, 0);
2588        jPanel14.add(jButtonAddReturnValue, gridBagConstraints);
2589
2590        jButtonModReturnValue.setText("Modify");
2591        jButtonModReturnValue.setEnabled(false);
2592        jButtonModReturnValue.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2593            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2594                jButtonModReturnValueActionPerformed(evt);
2595            }
2596        });
2597
2598        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2599        gridBagConstraints.gridx = 1;
2600        gridBagConstraints.gridy = 0;
2601        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2602        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2603        jPanel14.add(jButtonModReturnValue, gridBagConstraints);
2604
2605        jButtonRemReturnValue.setText("Remove");
2606        jButtonRemReturnValue.setEnabled(false);
2607        jButtonRemReturnValue.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2608            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2609                jButtonRemReturnValueActionPerformed(evt);
2610            }
2611        });
2612
2613        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2614        gridBagConstraints.gridx = 2;
2615        gridBagConstraints.gridy = 0;
2616        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2617        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2618        jPanel14.add(jButtonRemReturnValue, gridBagConstraints);
2619
2620        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2621        gridBagConstraints.gridx = 4;
2622        gridBagConstraints.weightx = 1.0;
2623        jPanel14.add(jPanel15, gridBagConstraints);
2624
2625        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2626        gridBagConstraints.gridy = 9;
2627        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2628        gridBagConstraints.weightx = 1.0;
2629        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 6);
2630        jPanelSubreportReturnValues.add(jPanel14, gridBagConstraints);
2631
2632        jTabbedPane1.addTab("Subreport return values", jPanelSubreportReturnValues);
2633
2634        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2635        gridBagConstraints.gridx = 0;
2636        gridBagConstraints.gridy = 99;
2637        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2638        gridBagConstraints.weightx = 1.0;
2639        gridBagConstraints.weighty = 1.0;
2640        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 4, 6);
2641        jPanelSubreport2.add(jTabbedPane1, gridBagConstraints);
2642
2643        jTabbedPane.addTab("Subreport (Other)", jPanelSubreport2);
2644
2645        jPanelHyperLink.setLayout(new java.awt.GridBagLayout JavaDoc());
2646
2647        jRTextExpressionAreaAnchorName.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2648        jRTextExpressionAreaAnchorName.setElectricScroll(0);
2649        jRTextExpressionAreaAnchorName.setMinimumSize(new java.awt.Dimension JavaDoc(0, 0));
2650        jRTextExpressionAreaAnchorName.setPreferredSize(new java.awt.Dimension JavaDoc(0, 0));
2651        jRTextExpressionAreaAnchorName.setViewScrollbars(false);
2652        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2653        gridBagConstraints.gridx = 0;
2654        gridBagConstraints.gridy = 1;
2655        gridBagConstraints.gridwidth = 2;
2656        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2657        gridBagConstraints.ipadx = 300;
2658        gridBagConstraints.ipady = 46;
2659        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2660        gridBagConstraints.weightx = 1.0;
2661        gridBagConstraints.weighty = 0.6;
2662        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
2663        jPanelHyperLink.add(jRTextExpressionAreaAnchorName, gridBagConstraints);
2664
2665        jLabel35.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2666        jLabel35.setText("Anchor Name Expression");
2667        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2668        gridBagConstraints.gridx = 0;
2669        gridBagConstraints.gridy = 0;
2670        gridBagConstraints.gridwidth = 2;
2671        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2672        gridBagConstraints.ipadx = 175;
2673        gridBagConstraints.insets = new java.awt.Insets JavaDoc(10, 8, 0, 6);
2674        jPanelHyperLink.add(jLabel35, gridBagConstraints);
2675
2676        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2677        gridBagConstraints.gridx = 0;
2678        gridBagConstraints.gridy = 4;
2679        gridBagConstraints.gridwidth = 2;
2680        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2681        gridBagConstraints.ipadx = 300;
2682        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2683        gridBagConstraints.weightx = 1.0;
2684        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 2);
2685        jPanelHyperLink.add(jSeparator3, gridBagConstraints);
2686
2687        jComboBoxLinkType.setEditable(true);
2688        jComboBoxLinkType.setMinimumSize(new java.awt.Dimension JavaDoc(180, 20));
2689        jComboBoxLinkType.setPreferredSize(new java.awt.Dimension JavaDoc(180, 20));
2690        jComboBoxLinkType.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2691            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2692                jComboBoxLinkTypeActionPerformed(evt);
2693            }
2694        });
2695
2696        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2697        gridBagConstraints.gridx = 1;
2698        gridBagConstraints.gridy = 8;
2699        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2700        gridBagConstraints.weightx = 1.0;
2701        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 6);
2702        jPanelHyperLink.add(jComboBoxLinkType, gridBagConstraints);
2703
2704        jLabel36.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
2705        jLabel36.setText("Hyperlink type");
2706        jLabel36.setMaximumSize(new java.awt.Dimension JavaDoc(200, 25));
2707        jLabel36.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
2708        jLabel36.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
2709        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2710        gridBagConstraints.gridx = 0;
2711        gridBagConstraints.gridy = 8;
2712        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2713        gridBagConstraints.ipadx = 22;
2714        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2715        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 8, 5, 0);
2716        jPanelHyperLink.add(jLabel36, gridBagConstraints);
2717
2718        jLabelTarget.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
2719        jLabelTarget.setText("Hyperlink target");
2720        jLabelTarget.setMaximumSize(new java.awt.Dimension JavaDoc(200, 25));
2721        jLabelTarget.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
2722        jLabelTarget.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
2723        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2724        gridBagConstraints.gridx = 0;
2725        gridBagConstraints.gridy = 7;
2726        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2727        gridBagConstraints.ipadx = 22;
2728        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2729        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 5, 0);
2730        jPanelHyperLink.add(jLabelTarget, gridBagConstraints);
2731
2732        jComboBoxLinkTarget.setMinimumSize(new java.awt.Dimension JavaDoc(180, 20));
2733        jComboBoxLinkTarget.setPreferredSize(new java.awt.Dimension JavaDoc(180, 20));
2734        jComboBoxLinkTarget.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2735            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2736                jComboBoxLinkTargetActionPerformed(evt);
2737            }
2738        });
2739
2740        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2741        gridBagConstraints.gridx = 1;
2742        gridBagConstraints.gridy = 7;
2743        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2744        gridBagConstraints.weightx = 1.0;
2745        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 2);
2746        jPanelHyperLink.add(jComboBoxLinkTarget, gridBagConstraints);
2747
2748        jLabelTarget1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
2749        jLabelTarget1.setText("Bookmark level");
2750        jLabelTarget1.setMaximumSize(new java.awt.Dimension JavaDoc(200, 25));
2751        jLabelTarget1.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
2752        jLabelTarget1.setPreferredSize(new java.awt.Dimension JavaDoc(100, 20));
2753        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2754        gridBagConstraints.gridx = 0;
2755        gridBagConstraints.gridy = 3;
2756        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2757        gridBagConstraints.ipadx = 22;
2758        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2759        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 5, 0);
2760        jPanelHyperLink.add(jLabelTarget1, gridBagConstraints);
2761
2762        jSpinnerBookmarkLevel.setFont(new java.awt.Font JavaDoc("Default", 0, 11));
2763        jSpinnerBookmarkLevel.setMinimumSize(new java.awt.Dimension JavaDoc(80, 20));
2764        jSpinnerBookmarkLevel.setPreferredSize(new java.awt.Dimension JavaDoc(80, 20));
2765        jSpinnerBookmarkLevel.setRequestFocusEnabled(false);
2766        jSpinnerBookmarkLevel.addChangeListener(new javax.swing.event.ChangeListener JavaDoc() {
2767            public void stateChanged(javax.swing.event.ChangeEvent JavaDoc evt) {
2768                jSpinnerBookmarkLevelStateChanged(evt);
2769            }
2770        });
2771
2772        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2773        gridBagConstraints.gridx = 1;
2774        gridBagConstraints.gridy = 3;
2775        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2776        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 2);
2777        jPanelHyperLink.add(jSpinnerBookmarkLevel, gridBagConstraints);
2778
2779        jPanel24.setLayout(new java.awt.GridBagLayout JavaDoc());
2780
2781        jPanel24.setMinimumSize(new java.awt.Dimension JavaDoc(457, 163));
2782        jPanel24.setPreferredSize(new java.awt.Dimension JavaDoc(321, 163));
2783        jTabbedPane2.setMinimumSize(new java.awt.Dimension JavaDoc(445, 163));
2784        jTabbedPane2.setPreferredSize(new java.awt.Dimension JavaDoc(309, 163));
2785        jPanelReference.setLayout(new java.awt.GridBagLayout JavaDoc());
2786
2787        jPanelReference.setMinimumSize(new java.awt.Dimension JavaDoc(0, 100));
2788        jRTextExpressionAreaReference.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2789        jRTextExpressionAreaReference.setEnabled(false);
2790        jRTextExpressionAreaReference.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
2791        jRTextExpressionAreaReference.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2792        jRTextExpressionAreaReference.setViewScrollbars(false);
2793        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2794        gridBagConstraints.gridx = 0;
2795        gridBagConstraints.gridy = 11;
2796        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2797        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2798        gridBagConstraints.weightx = 1.0;
2799        gridBagConstraints.weighty = 1.0;
2800        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
2801        jPanelReference.add(jRTextExpressionAreaReference, gridBagConstraints);
2802
2803        jLabelReference.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2804        jLabelReference.setText("Hyperlink Reference Expression");
2805        jLabelReference.setEnabled(false);
2806        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2807        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2808        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
2809        jPanelReference.add(jLabelReference, gridBagConstraints);
2810
2811        jTabbedPane2.addTab("Reference", jPanelReference);
2812
2813        jPanelAnchor.setLayout(new java.awt.GridBagLayout JavaDoc());
2814
2815        jPanelAnchor.setMinimumSize(new java.awt.Dimension JavaDoc(440, 100));
2816        jRTextExpressionAreaAnchor.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2817        jRTextExpressionAreaAnchor.setEnabled(false);
2818        jRTextExpressionAreaAnchor.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
2819        jRTextExpressionAreaAnchor.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2820        jRTextExpressionAreaAnchor.setViewScrollbars(false);
2821        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2822        gridBagConstraints.gridx = 0;
2823        gridBagConstraints.gridy = 1;
2824        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2825        gridBagConstraints.weightx = 1.0;
2826        gridBagConstraints.weighty = 1.0;
2827        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
2828        jPanelAnchor.add(jRTextExpressionAreaAnchor, gridBagConstraints);
2829
2830        jLabelAnchor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2831        jLabelAnchor.setText("Hyperlink Anchor Expression");
2832        jLabelAnchor.setEnabled(false);
2833        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2834        gridBagConstraints.gridx = 0;
2835        gridBagConstraints.gridy = 0;
2836        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2837        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
2838        jPanelAnchor.add(jLabelAnchor, gridBagConstraints);
2839
2840        jTabbedPane2.addTab("Anchor", jPanelAnchor);
2841
2842        jPanelPage.setLayout(new java.awt.GridBagLayout JavaDoc());
2843
2844        jPanelPage.setMinimumSize(new java.awt.Dimension JavaDoc(428, 100));
2845        jLabelPage.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
2846        jLabelPage.setText("Hyperlink Page Expression");
2847        jLabelPage.setEnabled(false);
2848        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2849        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2850        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
2851        jPanelPage.add(jLabelPage, gridBagConstraints);
2852
2853        jRTextExpressionAreaPage.setBorder(javax.swing.BorderFactory.createEtchedBorder());
2854        jRTextExpressionAreaPage.setEnabled(false);
2855        jRTextExpressionAreaPage.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
2856        jRTextExpressionAreaPage.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
2857        jRTextExpressionAreaPage.setViewScrollbars(false);
2858        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2859        gridBagConstraints.gridx = 0;
2860        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2861        gridBagConstraints.weightx = 1.0;
2862        gridBagConstraints.weighty = 1.0;
2863        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
2864        jPanelPage.add(jRTextExpressionAreaPage, gridBagConstraints);
2865
2866        jTabbedPane2.addTab("Page", jPanelPage);
2867
2868        jPanelLinkParams.setLayout(new java.awt.GridBagLayout JavaDoc());
2869
2870        jTableLinkParameters.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
2871            new Object JavaDoc [][] {
2872
2873            },
2874            new String JavaDoc [] {
2875                "Link parameter", "Expression"
2876            }
2877        ) {
2878            boolean[] canEdit = new boolean [] {
2879                false, false
2880            };
2881
2882            public boolean isCellEditable(int rowIndex, int columnIndex) {
2883                return canEdit [columnIndex];
2884            }
2885        });
2886        jTableLinkParameters.addMouseListener(new java.awt.event.MouseAdapter JavaDoc() {
2887            public void mouseClicked(java.awt.event.MouseEvent JavaDoc evt) {
2888                jTableLinkParametersMouseClicked(evt);
2889            }
2890        });
2891
2892        jScrollPane5.setViewportView(jTableLinkParameters);
2893
2894        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2895        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2896        gridBagConstraints.weightx = 1.0;
2897        gridBagConstraints.weighty = 1.0;
2898        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
2899        jPanelLinkParams.add(jScrollPane5, gridBagConstraints);
2900
2901        jPanel25.setLayout(new java.awt.GridBagLayout JavaDoc());
2902
2903        jButtonAddLinkParameter.setText("Add");
2904        jButtonAddLinkParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2905            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2906                jButtonAddLinkParameterActionPerformed(evt);
2907            }
2908        });
2909
2910        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2911        gridBagConstraints.gridx = 0;
2912        gridBagConstraints.gridy = 0;
2913        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2914        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 0, 6, 0);
2915        jPanel25.add(jButtonAddLinkParameter, gridBagConstraints);
2916
2917        jButtonModLinkParameter.setText("Modify");
2918        jButtonModLinkParameter.setEnabled(false);
2919        jButtonModLinkParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2920            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2921                jButtonModLinkParameterActionPerformed(evt);
2922            }
2923        });
2924
2925        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2926        gridBagConstraints.gridx = 1;
2927        gridBagConstraints.gridy = 0;
2928        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2929        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2930        jPanel25.add(jButtonModLinkParameter, gridBagConstraints);
2931
2932        jButtonRemLinkParameter.setText("Remove");
2933        jButtonRemLinkParameter.setEnabled(false);
2934        jButtonRemLinkParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2935            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2936                jButtonRemLinkParameterActionPerformed(evt);
2937            }
2938        });
2939
2940        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2941        gridBagConstraints.gridx = 2;
2942        gridBagConstraints.gridy = 0;
2943        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2944        gridBagConstraints.weightx = 1.0;
2945        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
2946        jPanel25.add(jButtonRemLinkParameter, gridBagConstraints);
2947
2948        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2949        gridBagConstraints.gridx = 0;
2950        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
2951        gridBagConstraints.weightx = 1.0;
2952        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 6);
2953        jPanelLinkParams.add(jPanel25, gridBagConstraints);
2954
2955        jTabbedPane2.addTab("Link parameters", jPanelLinkParams);
2956
2957        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2958        gridBagConstraints.gridx = 0;
2959        gridBagConstraints.gridy = 100;
2960        gridBagConstraints.gridwidth = 2;
2961        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2962        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
2963        gridBagConstraints.weightx = 1.5;
2964        gridBagConstraints.weighty = 1.5;
2965        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 2, 6);
2966        jPanel24.add(jTabbedPane2, gridBagConstraints);
2967
2968        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2969        gridBagConstraints.gridx = 0;
2970        gridBagConstraints.gridy = 100;
2971        gridBagConstraints.gridwidth = 2;
2972        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
2973        gridBagConstraints.weightx = 1.0;
2974        gridBagConstraints.weighty = 1.5;
2975        jPanelHyperLink.add(jPanel24, gridBagConstraints);
2976
2977        jTabbedPane.addTab("Hyper Link", jPanelHyperLink);
2978
2979        jPanelBarcode.setLayout(new java.awt.GridBagLayout JavaDoc());
2980
2981        jLabel47.setText("Type");
2982        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2983        gridBagConstraints.gridx = 0;
2984        gridBagConstraints.gridy = 0;
2985        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
2986        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
2987        jPanelBarcode.add(jLabel47, gridBagConstraints);
2988
2989        jComboBoxBarcodeType.setMinimumSize(new java.awt.Dimension JavaDoc(100, 20));
2990        jComboBoxBarcodeType.setPreferredSize(new java.awt.Dimension JavaDoc(200, 20));
2991        jComboBoxBarcodeType.addActionListener(new java.awt.event.ActionListener JavaDoc() {
2992            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
2993                jComboBoxBarcodeTypeActionPerformed(evt);
2994            }
2995        });
2996
2997        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
2998        gridBagConstraints.gridx = 0;
2999        gridBagConstraints.gridy = 1;
3000        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3001        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3002        jPanelBarcode.add(jComboBoxBarcodeType, gridBagConstraints);
3003
3004        jBarcodeExpressionArea.setBorder(javax.swing.BorderFactory.createEtchedBorder());
3005        jBarcodeExpressionArea.setAutoscrolls(true);
3006        jBarcodeExpressionArea.setElectricScroll(0);
3007        jBarcodeExpressionArea.setMinimumSize(new java.awt.Dimension JavaDoc(0, 21));
3008        jBarcodeExpressionArea.setPreferredSize(new java.awt.Dimension JavaDoc(0, 0));
3009        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3010        gridBagConstraints.gridx = 0;
3011        gridBagConstraints.gridy = 3;
3012        gridBagConstraints.gridwidth = 3;
3013        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
3014        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3015        gridBagConstraints.weightx = 1.0;
3016        gridBagConstraints.weighty = 1.0;
3017        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 6, 6);
3018        jPanelBarcode.add(jBarcodeExpressionArea, gridBagConstraints);
3019
3020        jLabel48.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
3021        jLabel48.setText("Barcode expression");
3022        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3023        gridBagConstraints.gridx = 0;
3024        gridBagConstraints.gridy = 2;
3025        gridBagConstraints.gridwidth = 2;
3026        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3027        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3028        jPanelBarcode.add(jLabel48, gridBagConstraints);
3029
3030        jSeparator8.setMinimumSize(new java.awt.Dimension JavaDoc(300, 2));
3031        jSeparator8.setPreferredSize(new java.awt.Dimension JavaDoc(300, 2));
3032        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3033        gridBagConstraints.gridx = 0;
3034        gridBagConstraints.gridy = 25;
3035        gridBagConstraints.gridwidth = 3;
3036        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3037        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3038        gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 6, 0, 6);
3039        jPanelBarcode.add(jSeparator8, gridBagConstraints);
3040
3041        jComboBoxBarcodeGroup.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3042        jComboBoxBarcodeGroup.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3043        jComboBoxBarcodeGroup.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3044            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3045                jComboBoxBarcodeGroupActionPerformed(evt);
3046            }
3047        });
3048
3049        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3050        gridBagConstraints.gridx = 1;
3051        gridBagConstraints.gridy = 30;
3052        gridBagConstraints.gridwidth = 2;
3053        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3054        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3055        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 6);
3056        jPanelBarcode.add(jComboBoxBarcodeGroup, gridBagConstraints);
3057
3058        jLabel43.setText("Evaluation group");
3059        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3060        gridBagConstraints.gridx = 1;
3061        gridBagConstraints.gridy = 29;
3062        gridBagConstraints.gridwidth = 2;
3063        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3064        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3065        jPanelBarcode.add(jLabel43, gridBagConstraints);
3066
3067        jComboBoxEvaluationTimeBarcode.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3068        jComboBoxEvaluationTimeBarcode.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3069        jComboBoxEvaluationTimeBarcode.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3070            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3071                jComboBoxEvaluationTimeBarcodeActionPerformed(evt);
3072            }
3073        });
3074
3075        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3076        gridBagConstraints.gridx = 0;
3077        gridBagConstraints.gridy = 30;
3078        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3079        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3080        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 0);
3081        jPanelBarcode.add(jComboBoxEvaluationTimeBarcode, gridBagConstraints);
3082
3083        jLabel50.setText("Evaluation time");
3084        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3085        gridBagConstraints.gridx = 0;
3086        gridBagConstraints.gridy = 29;
3087        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3088        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3089        jPanelBarcode.add(jLabel50, gridBagConstraints);
3090
3091        jLabel54.setText("Scale Barcode Image");
3092        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3093        gridBagConstraints.gridx = 0;
3094        gridBagConstraints.gridy = 17;
3095        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3096        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3097        jPanelBarcode.add(jLabel54, gridBagConstraints);
3098
3099        jLabel55.setText("On error type");
3100        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3101        gridBagConstraints.gridx = 1;
3102        gridBagConstraints.gridy = 17;
3103        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3104        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3105        jPanelBarcode.add(jLabel55, gridBagConstraints);
3106
3107        jComboBoxImageOnError1.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3108        jComboBoxImageOnError1.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3109        jComboBoxImageOnError1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3110            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3111                jComboBoxImageOnErrorActionPerformed1(evt);
3112            }
3113        });
3114
3115        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3116        gridBagConstraints.gridx = 1;
3117        gridBagConstraints.gridy = 18;
3118        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3119        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
3120        jPanelBarcode.add(jComboBoxImageOnError1, gridBagConstraints);
3121
3122        jComboBoxScale1.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3123        jComboBoxScale1.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3124        jComboBoxScale1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3125            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3126                jComboBoxScaleActionPerformed1(evt);
3127            }
3128        });
3129
3130        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3131        gridBagConstraints.gridx = 0;
3132        gridBagConstraints.gridy = 18;
3133        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3134        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
3135        jPanelBarcode.add(jComboBoxScale1, gridBagConstraints);
3136
3137        jLabel56.setText("Horizontal alignment");
3138        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3139        gridBagConstraints.gridx = 1;
3140        gridBagConstraints.gridy = 19;
3141        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3142        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3143        jPanelBarcode.add(jLabel56, gridBagConstraints);
3144
3145        jLabel57.setText("Vertical alignment");
3146        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3147        gridBagConstraints.gridx = 0;
3148        gridBagConstraints.gridy = 19;
3149        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3150        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3151        jPanelBarcode.add(jLabel57, gridBagConstraints);
3152
3153        jComboBoxVerticalAlignment1.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3154        jComboBoxVerticalAlignment1.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3155        jComboBoxVerticalAlignment1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3156            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3157                jComboBoxVerticalAlignmentActionPerformed1(evt);
3158            }
3159        });
3160
3161        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3162        gridBagConstraints.gridx = 0;
3163        gridBagConstraints.gridy = 20;
3164        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3165        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 0);
3166        jPanelBarcode.add(jComboBoxVerticalAlignment1, gridBagConstraints);
3167
3168        jComboBoxHorizontalAlignment1.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3169        jComboBoxHorizontalAlignment1.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3170        jComboBoxHorizontalAlignment1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3171            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3172                jComboBoxHorizontalAlignmentActionPerformed1(evt);
3173            }
3174        });
3175
3176        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3177        gridBagConstraints.gridx = 1;
3178        gridBagConstraints.gridy = 20;
3179        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3180        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 0, 6);
3181        jPanelBarcode.add(jComboBoxHorizontalAlignment1, gridBagConstraints);
3182
3183        jSeparator10.setMinimumSize(new java.awt.Dimension JavaDoc(300, 2));
3184        jSeparator10.setPreferredSize(new java.awt.Dimension JavaDoc(300, 2));
3185        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3186        gridBagConstraints.gridx = 0;
3187        gridBagConstraints.gridy = 16;
3188        gridBagConstraints.gridwidth = 3;
3189        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3190        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3191        gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 6, 0, 6);
3192        jPanelBarcode.add(jSeparator10, gridBagConstraints);
3193
3194        jPanel22.setLayout(new java.awt.GridBagLayout JavaDoc());
3195
3196        jLabel58.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
3197        jLabel58.setText("Bar height");
3198        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3199        gridBagConstraints.gridx = 4;
3200        gridBagConstraints.gridy = 0;
3201        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
3202        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 16, 0, 0);
3203        jPanel22.add(jLabel58, gridBagConstraints);
3204
3205        jLabel60.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
3206        jLabel60.setText("(0 = default)");
3207        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3208        gridBagConstraints.gridx = 10;
3209        gridBagConstraints.gridy = 0;
3210        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3211        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3212        gridBagConstraints.weightx = 1.0;
3213        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3214        jPanel22.add(jLabel60, gridBagConstraints);
3215
3216        jLabel61.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
3217        jLabel61.setText("Bar width");
3218        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3219        gridBagConstraints.gridx = 0;
3220        gridBagConstraints.gridy = 0;
3221        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
3222        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3223        jPanel22.add(jLabel61, gridBagConstraints);
3224
3225        jNumberFieldBCWidth.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
3226        jNumberFieldBCWidth.setText("0");
3227        jNumberFieldBCWidth.setToolTipText("Sets the desired width for the bars in the barcode (in pixels).");
3228        try {
3229            jNumberFieldBCWidth.setDecimals(0);
3230        } catch (java.beans.PropertyVetoException JavaDoc e1) {
3231            e1.printStackTrace();
3232        }
3233        try {
3234            jNumberFieldBCWidth.setInteger(true);
3235        } catch (java.beans.PropertyVetoException JavaDoc e1) {
3236            e1.printStackTrace();
3237        }
3238        jNumberFieldBCWidth.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
3239        jNumberFieldBCWidth.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
3240        jNumberFieldBCWidth.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3241            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3242                jNumberFieldBCHeightjNumberFieldTopActionPerformed1(evt);
3243            }
3244        });
3245
3246        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3247        gridBagConstraints.gridx = 1;
3248        gridBagConstraints.gridy = 0;
3249        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3250        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 5, 2, 0);
3251        jPanel22.add(jNumberFieldBCWidth, gridBagConstraints);
3252
3253        jNumberFieldBCHeight.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
3254        jNumberFieldBCHeight.setText("0");
3255        jNumberFieldBCHeight.setToolTipText("Sets the desired height for the bars in the barcode (in pixels)");
3256        try {
3257            jNumberFieldBCHeight.setDecimals(0);
3258        } catch (java.beans.PropertyVetoException JavaDoc e1) {
3259            e1.printStackTrace();
3260        }
3261        try {
3262            jNumberFieldBCHeight.setInteger(true);
3263        } catch (java.beans.PropertyVetoException JavaDoc e1) {
3264            e1.printStackTrace();
3265        }
3266        jNumberFieldBCHeight.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
3267        jNumberFieldBCHeight.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
3268        jNumberFieldBCHeight.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3269            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3270                jNumberFieldTopActionPerformed1(evt);
3271            }
3272        });
3273
3274        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3275        gridBagConstraints.gridx = 5;
3276        gridBagConstraints.gridy = 0;
3277        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3278        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 5, 2, 8);
3279        jPanel22.add(jNumberFieldBCHeight, gridBagConstraints);
3280
3281        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3282        gridBagConstraints.gridy = 10;
3283        gridBagConstraints.gridwidth = 3;
3284        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3285        jPanelBarcode.add(jPanel22, gridBagConstraints);
3286
3287        jBarcodeExpressionAreaAppIdentifier.setBorder(javax.swing.BorderFactory.createEtchedBorder());
3288        jBarcodeExpressionAreaAppIdentifier.setAutoscrolls(true);
3289        jBarcodeExpressionAreaAppIdentifier.setElectricScroll(0);
3290        jBarcodeExpressionAreaAppIdentifier.setMinimumSize(new java.awt.Dimension JavaDoc(0, 21));
3291        jBarcodeExpressionAreaAppIdentifier.setPreferredSize(new java.awt.Dimension JavaDoc(0, 0));
3292        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3293        gridBagConstraints.gridx = 0;
3294        gridBagConstraints.gridy = 12;
3295        gridBagConstraints.gridwidth = 3;
3296        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
3297        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3298        gridBagConstraints.weightx = 1.0;
3299        gridBagConstraints.weighty = 0.3;
3300        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 6, 6);
3301        jPanelBarcode.add(jBarcodeExpressionAreaAppIdentifier, gridBagConstraints);
3302
3303        jLabel59.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
3304        jLabel59.setText("Application identifier");
3305        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3306        gridBagConstraints.gridx = 0;
3307        gridBagConstraints.gridy = 11;
3308        gridBagConstraints.gridwidth = 2;
3309        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3310        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3311        jPanelBarcode.add(jLabel59, gridBagConstraints);
3312
3313        jPanel23.setLayout(new java.awt.GridBagLayout JavaDoc());
3314
3315        jCheckBoxBarcodeCheckSum.setText("Checksum");
3316        jCheckBoxBarcodeCheckSum.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3317            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3318                BarcodeActionPerformed(evt);
3319            }
3320        });
3321
3322        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3323        gridBagConstraints.gridx = 1;
3324        gridBagConstraints.gridy = 1;
3325        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3326        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3327        jPanel23.add(jCheckBoxBarcodeCheckSum, gridBagConstraints);
3328
3329        jCheckBoxBarcodeShowText.setText("Show Text");
3330        jCheckBoxBarcodeShowText.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3331            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3332                BarcodeActionPerformed(evt);
3333            }
3334        });
3335
3336        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3337        gridBagConstraints.gridx = 2;
3338        gridBagConstraints.gridy = 1;
3339        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3340        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 8, 0, 0);
3341        jPanel23.add(jCheckBoxBarcodeShowText, gridBagConstraints);
3342
3343        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3344        gridBagConstraints.gridx = 1;
3345        gridBagConstraints.gridy = 1;
3346        gridBagConstraints.weightx = 0.5;
3347        jPanelBarcode.add(jPanel23, gridBagConstraints);
3348
3349        jTabbedPane.addTab("Barcode", jPanelBarcode);
3350
3351        jPanelChart.setLayout(new java.awt.GridBagLayout JavaDoc());
3352
3353        jPanelChart.add(jSeparator6, new java.awt.GridBagConstraints JavaDoc());
3354
3355        jSeparator9.setMinimumSize(new java.awt.Dimension JavaDoc(300, 2));
3356        jSeparator9.setPreferredSize(new java.awt.Dimension JavaDoc(300, 2));
3357        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3358        gridBagConstraints.gridx = 0;
3359        gridBagConstraints.gridy = 9;
3360        gridBagConstraints.gridwidth = 2;
3361        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3362        gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 6, 0, 6);
3363        jPanelChart.add(jSeparator9, gridBagConstraints);
3364
3365        jLabel44.setText("Evaluation time");
3366        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3367        gridBagConstraints.gridx = 0;
3368        gridBagConstraints.gridy = 10;
3369        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3370        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3371        jPanelChart.add(jLabel44, gridBagConstraints);
3372
3373        jComboBoxEvaluationTime1.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3374        jComboBoxEvaluationTime1.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3375        jComboBoxEvaluationTime1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3376            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3377                jComboBoxEvaluationTime1ActionPerformed(evt);
3378            }
3379        });
3380
3381        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3382        gridBagConstraints.gridx = 0;
3383        gridBagConstraints.gridy = 11;
3384        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3385        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 0);
3386        jPanelChart.add(jComboBoxEvaluationTime1, gridBagConstraints);
3387
3388        jLabel45.setText("Evaluation group");
3389        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3390        gridBagConstraints.gridx = 1;
3391        gridBagConstraints.gridy = 10;
3392        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3393        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 8, 0, 0);
3394        jPanelChart.add(jLabel45, gridBagConstraints);
3395
3396        jComboBoxImageGroup1.setMinimumSize(new java.awt.Dimension JavaDoc(150, 20));
3397        jComboBoxImageGroup1.setPreferredSize(new java.awt.Dimension JavaDoc(150, 20));
3398        jComboBoxImageGroup1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3399            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3400                jComboBoxImageGroup1ActionPerformed(evt);
3401            }
3402        });
3403
3404        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3405        gridBagConstraints.gridx = 1;
3406        gridBagConstraints.gridy = 11;
3407        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3408        gridBagConstraints.insets = new java.awt.Insets JavaDoc(1, 6, 6, 6);
3409        jPanelChart.add(jComboBoxImageGroup1, gridBagConstraints);
3410
3411        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3412        gridBagConstraints.gridx = 0;
3413        gridBagConstraints.gridy = 12;
3414        gridBagConstraints.gridwidth = 3;
3415        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
3416        gridBagConstraints.weightx = 1.0;
3417        gridBagConstraints.weighty = 1.0;
3418        jPanelChart.add(jPanel9, gridBagConstraints);
3419
3420        jButton1.setLabel("Edit chart properties");
3421        jButton1.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3422            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3423                jButton1ActionPerformed(evt);
3424            }
3425        });
3426
3427        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3428        gridBagConstraints.gridx = 0;
3429        gridBagConstraints.gridy = 0;
3430        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
3431        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 4, 0, 0);
3432        jPanelChart.add(jButton1, gridBagConstraints);
3433
3434        jTabbedPane.addTab("Chart", jPanelChart);
3435
3436        jPanelBorder.setLayout(new java.awt.GridBagLayout JavaDoc());
3437
3438        jTabbedPane.addTab("Border", jPanelBorder);
3439
3440        jPanelSheet.setLayout(new java.awt.GridBagLayout JavaDoc());
3441
3442        jTabbedPane.addTab("All", jPanelSheet);
3443
3444        jPanelCrosstab.setLayout(new java.awt.GridBagLayout JavaDoc());
3445
3446        jLabel51.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
3447        jLabel51.setText("Parameters Map Expression");
3448        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3449        gridBagConstraints.gridx = 0;
3450        gridBagConstraints.gridy = 11;
3451        gridBagConstraints.gridwidth = 3;
3452        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3453        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 8, 0, 0);
3454        jPanelCrosstab.add(jLabel51, gridBagConstraints);
3455
3456        jRTextExpressionAreaCrosstabParametersMapExpression.setBorder(javax.swing.BorderFactory.createEtchedBorder());
3457        jRTextExpressionAreaCrosstabParametersMapExpression.setElectricScroll(0);
3458        jRTextExpressionAreaCrosstabParametersMapExpression.setMinimumSize(new java.awt.Dimension JavaDoc(0, 0));
3459        jRTextExpressionAreaCrosstabParametersMapExpression.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
3460        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3461        gridBagConstraints.gridx = 0;
3462        gridBagConstraints.gridy = 12;
3463        gridBagConstraints.gridwidth = 3;
3464        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
3465        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3466        gridBagConstraints.weightx = 1.0;
3467        gridBagConstraints.weighty = 0.5;
3468        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 8, 6);
3469        jPanelCrosstab.add(jRTextExpressionAreaCrosstabParametersMapExpression, gridBagConstraints);
3470
3471        jPanel18.setLayout(new java.awt.GridBagLayout JavaDoc());
3472
3473        jScrollPane4.setMinimumSize(new java.awt.Dimension JavaDoc(300, 50));
3474        jScrollPane4.setPreferredSize(new java.awt.Dimension JavaDoc(300, 50));
3475        jTableCrosstabParameters.setModel(new javax.swing.table.DefaultTableModel JavaDoc(
3476            new Object JavaDoc [][] {
3477
3478            },
3479            new String JavaDoc [] {
3480                "Parameter", "Expression"
3481            }
3482        ) {
3483            boolean[] canEdit = new boolean [] {
3484                false, false
3485            };
3486
3487            public boolean isCellEditable(int rowIndex, int columnIndex) {
3488                return canEdit [columnIndex];
3489            }
3490        });
3491        jTableCrosstabParameters.addMouseListener(new java.awt.event.MouseAdapter JavaDoc() {
3492            public void mouseClicked(java.awt.event.MouseEvent JavaDoc evt) {
3493                jTableCrosstabParametersMouseClicked(evt);
3494            }
3495        });
3496
3497        jScrollPane4.setViewportView(jTableCrosstabParameters);
3498
3499        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3500        gridBagConstraints.gridx = 0;
3501        gridBagConstraints.gridy = 7;
3502        gridBagConstraints.gridwidth = 3;
3503        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
3504        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3505        gridBagConstraints.weightx = 1.0;
3506        gridBagConstraints.weighty = 1.0;
3507        gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 6, 0, 6);
3508        jPanel18.add(jScrollPane4, gridBagConstraints);
3509
3510        jPanel19.setLayout(new java.awt.GridBagLayout JavaDoc());
3511
3512        jButtonAddCrosstabParameter.setText("Add");
3513        jButtonAddCrosstabParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3514            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3515                jButtonAddCrosstabParameterActionPerformed(evt);
3516            }
3517        });
3518
3519        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3520        gridBagConstraints.gridx = 0;
3521        gridBagConstraints.gridy = 0;
3522        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3523        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 0, 6, 0);
3524        jPanel19.add(jButtonAddCrosstabParameter, gridBagConstraints);
3525
3526        jButtonModCrosstabParameter.setText("Modify");
3527        jButtonModCrosstabParameter.setEnabled(false);
3528        jButtonModCrosstabParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3529            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3530                jButtonModCrosstabParameterActionPerformed(evt);
3531            }
3532        });
3533
3534        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3535        gridBagConstraints.gridx = 1;
3536        gridBagConstraints.gridy = 0;
3537        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3538        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
3539        jPanel19.add(jButtonModCrosstabParameter, gridBagConstraints);
3540
3541        jButtonRemCrosstabParameter.setText("Remove");
3542        jButtonRemCrosstabParameter.setEnabled(false);
3543        jButtonRemCrosstabParameter.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3544            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3545                jButtonRemCrosstabParameterActionPerformed(evt);
3546            }
3547        });
3548
3549        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3550        gridBagConstraints.gridx = 2;
3551        gridBagConstraints.gridy = 0;
3552        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3553        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 6, 0);
3554        jPanel19.add(jButtonRemCrosstabParameter, gridBagConstraints);
3555
3556        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3557        gridBagConstraints.gridx = 4;
3558        gridBagConstraints.weightx = 1.0;
3559        jPanel19.add(jPanel20, gridBagConstraints);
3560
3561        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3562        gridBagConstraints.gridy = 9;
3563        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3564        gridBagConstraints.weightx = 1.0;
3565        gridBagConstraints.insets = new java.awt.Insets JavaDoc(0, 6, 0, 6);
3566        jPanel18.add(jPanel19, gridBagConstraints);
3567
3568        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3569        gridBagConstraints.gridy = 9;
3570        gridBagConstraints.gridwidth = 3;
3571        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
3572        gridBagConstraints.weightx = 1.0;
3573        gridBagConstraints.weighty = 1.0;
3574        jPanelCrosstab.add(jPanel18, gridBagConstraints);
3575
3576        jLabel52.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
3577        jLabel52.setText("Crosstab parameters");
3578        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3579        gridBagConstraints.gridx = 0;
3580        gridBagConstraints.gridy = 8;
3581        gridBagConstraints.gridwidth = 3;
3582        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3583        gridBagConstraints.insets = new java.awt.Insets JavaDoc(6, 8, 0, 0);
3584        jPanelCrosstab.add(jLabel52, gridBagConstraints);
3585
3586        jCheckBoxRepeatColumnHeaders.setText("Repeat column headers");
3587        jCheckBoxRepeatColumnHeaders.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
3588        jCheckBoxRepeatColumnHeaders.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
3589        jCheckBoxRepeatColumnHeaders.setMaximumSize(new java.awt.Dimension JavaDoc(300, 15));
3590        jCheckBoxRepeatColumnHeaders.setMinimumSize(new java.awt.Dimension JavaDoc(150, 15));
3591        jCheckBoxRepeatColumnHeaders.setPreferredSize(new java.awt.Dimension JavaDoc(150, 15));
3592        jCheckBoxRepeatColumnHeaders.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3593            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3594                jCheckBoxRepeatColumnHeadersActionPerformed(evt);
3595            }
3596        });
3597
3598        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3599        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3600        gridBagConstraints.insets = new java.awt.Insets JavaDoc(8, 6, 0, 0);
3601        jPanelCrosstab.add(jCheckBoxRepeatColumnHeaders, gridBagConstraints);
3602
3603        jCheckBoxRepeatRowHeaders.setText("Repeat row headers");
3604        jCheckBoxRepeatRowHeaders.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
3605        jCheckBoxRepeatRowHeaders.setMargin(new java.awt.Insets JavaDoc(0, 0, 0, 0));
3606        jCheckBoxRepeatRowHeaders.setMaximumSize(new java.awt.Dimension JavaDoc(150, 15));
3607        jCheckBoxRepeatRowHeaders.setMinimumSize(new java.awt.Dimension JavaDoc(150, 15));
3608        jCheckBoxRepeatRowHeaders.setPreferredSize(new java.awt.Dimension JavaDoc(150, 15));
3609        jCheckBoxRepeatRowHeaders.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3610            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3611                jCheckBoxRepeatRowHeadersActionPerformed(evt);
3612            }
3613        });
3614
3615        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3616        gridBagConstraints.gridy = 2;
3617        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
3618        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 6, 0, 0);
3619        jPanelCrosstab.add(jCheckBoxRepeatRowHeaders, gridBagConstraints);
3620
3621        jButton2.setText("Edit crosstab properties");
3622        jButton2.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3623            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3624                jButton2ActionPerformed(evt);
3625            }
3626        });
3627
3628        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3629        gridBagConstraints.gridx = 1;
3630        gridBagConstraints.gridy = 2;
3631        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
3632        gridBagConstraints.insets = new java.awt.Insets JavaDoc(4, 20, 0, 6);
3633        jPanelCrosstab.add(jButton2, gridBagConstraints);
3634
3635        jPanel21.setLayout(new java.awt.GridBagLayout JavaDoc());
3636
3637        jNumberFieldColumnBreakOffset.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
3638        jNumberFieldColumnBreakOffset.setText("0");
3639        try {
3640            jNumberFieldColumnBreakOffset.setDecimals(0);
3641        } catch (java.beans.PropertyVetoException JavaDoc e1) {
3642            e1.printStackTrace();
3643        }
3644        try {
3645            jNumberFieldColumnBreakOffset.setInteger(true);
3646        } catch (java.beans.PropertyVetoException JavaDoc e1) {
3647            e1.printStackTrace();
3648        }
3649        jNumberFieldColumnBreakOffset.setMinimumSize(new java.awt.Dimension JavaDoc(45, 20));
3650        jNumberFieldColumnBreakOffset.setPreferredSize(new java.awt.Dimension JavaDoc(45, 20));
3651        jNumberFieldColumnBreakOffset.addActionListener(new java.awt.event.ActionListener JavaDoc() {
3652            public void actionPerformed(java.awt.event.ActionEvent JavaDoc evt) {
3653                jNumberFieldColumnBreakOffsetActionPerformed(evt);
3654            }
3655        });
3656
3657        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3658        gridBagConstraints.gridx = 2;
3659        gridBagConstraints.gridy = 0;
3660        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
3661        gridBagConstraints.weightx = 1.0;
3662        gridBagConstraints.insets = new java.awt.Insets JavaDoc(8, 5, 0, 6);
3663        jPanel21.add(jNumberFieldColumnBreakOffset, gridBagConstraints);
3664
3665        jLabel53.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
3666        jLabel53.setText("Column break offset");
3667        jLabel53.setMaximumSize(new java.awt.Dimension JavaDoc(200, 15));
3668        jLabel53.setMinimumSize(new java.awt.Dimension JavaDoc(110, 15));
3669        jLabel53.setPreferredSize(new java.awt.Dimension JavaDoc(130, 15));
3670        gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
3671        gridBagConstraints.gridx = 1;
3672        gridBagConstraints.gridy = 0;
3673        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
3674        gridBagConstraints.insets = new java.awt.Insets JavaDoc(8, 20, 0, 0);
3675        jPanel21.add(jLabel53, gridBagConstraints);
3676
3677        jPanelCrosstab.add(jPanel21, new java.awt.GridBagConstraints JavaDoc());
3678
3679        jTabbedPane.addTab("Crosstab", jPanelCrosstab);
3680
3681        getContentPane().add(jTabbedPane, java.awt.BorderLayout.CENTER);
3682
3683        java.awt.Dimension JavaDoc screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
3684        setBounds((screenSize.width-442)/2, (screenSize.height-408)/2, 442, 408);
3685    }// </editor-fold>//GEN-END:initComponents
3686

3687    private void jTableLinkParametersMouseClicked(java.awt.event.MouseEvent JavaDoc evt) {//GEN-FIRST:event_jTableLinkParametersMouseClicked
3688
if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
3689            if (jTableLinkParameters.getSelectedRowCount() > 0) {
3690                jButtonModLinkParameterActionPerformed(null);
3691            }
3692        }
3693    }//GEN-LAST:event_jTableLinkParametersMouseClicked
3694

3695    private void jButtonRemLinkParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonRemLinkParameterActionPerformed
3696
if (this.isInit()) return;
3697        
3698        if (jrf == null || getElementSelection().size()==0) return;
3699        
3700        Enumeration e = getElementSelection().elements();
3701        HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
3702        
3703        javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableLinkParameters.getModel();
3704        int[] rows= jTableLinkParameters.getSelectedRows();
3705        for (int i=rows.length-1; i>=0; --i) {
3706            element.getLinkParameters().remove( jTableLinkParameters.getValueAt( rows[i], 0) );
3707            dtm.removeRow(rows[i]);
3708        }
3709        
3710    }//GEN-LAST:event_jButtonRemLinkParameterActionPerformed
3711

3712    private void jButtonModLinkParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonModLinkParameterActionPerformed
3713
if (this.isInit()) return;
3714        
3715        if (jrf == null || getElementSelection().size()==0) return;
3716        
3717        Enumeration e = getElementSelection().elements();
3718        HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
3719        
3720        JRLinkParameter parameter = (JRLinkParameter)jTableLinkParameters.getValueAt( jTableLinkParameters.getSelectedRow(), 0);
3721        
3722        JRLinkParameterDialog jrpd = new JRLinkParameterDialog(this, true);
3723        jrpd.setParameter( parameter );
3724        jrpd.setVisible(true);
3725        
3726        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
3727            parameter.setName( jrpd.getParameter().getName() );
3728            parameter.setExpression( jrpd.getParameter().getExpression());
3729            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableLinkParameters.getModel();
3730            dtm.setRowCount(0);
3731            
3732            java.util.Iterator JavaDoc enum_parameters = element.getLinkParameters().iterator();
3733            while (enum_parameters.hasNext()) {
3734                it.businesslogic.ireport.JRLinkParameter parameter2 = (it.businesslogic.ireport.JRLinkParameter)enum_parameters.next();
3735                Vector row = new Vector();
3736                row.addElement(parameter2);
3737                row.addElement(parameter2.getExpression());
3738                dtm.addRow(row);
3739            }
3740        }
3741    }//GEN-LAST:event_jButtonModLinkParameterActionPerformed
3742

3743    private void jButtonAddLinkParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonAddLinkParameterActionPerformed
3744
if (this.isInit()) return;
3745        
3746        if (jrf == null || getElementSelection().size()==0) return;
3747        // Set the new value for all selected elements...
3748
Enumeration e = getElementSelection().elements();
3749        HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
3750        
3751        JRLinkParameterDialog jrpd = new JRLinkParameterDialog(this, true);
3752        jrpd.setVisible(true);
3753        
3754        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
3755            it.businesslogic.ireport.JRLinkParameter parameter = jrpd.getParameter();
3756            element.getLinkParameters().add( parameter );
3757            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableLinkParameters.getModel();
3758            dtm.addRow(new Object JavaDoc[]{parameter, parameter.getExpression()});
3759        }
3760    }//GEN-LAST:event_jButtonAddLinkParameterActionPerformed
3761

3762    private void jButtonCopyParamsFromMasterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonCopyParamsFromMasterActionPerformed
3763
if (this.isInit()) return;
3764        
3765        if (jrf == null || getElementSelection().size()==0) return;
3766        // Set the new value for all selected elements...
3767
Enumeration e = getElementSelection().elements();
3768        SubReportElement element = (SubReportElement)e.nextElement();
3769        
3770        javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportParameters.getModel();
3771        
3772        Vector parameters = jrf.getReport().getParameters();
3773        
3774        for (int i=0; i<parameters.size(); ++i) {
3775            JRParameter jrParameter = (JRParameter)parameters.get(i);
3776            if (jrParameter.isBuiltin()) continue;
3777            
3778            // Check if a similar parameter already exists...
3779
boolean found = false;
3780            for (int k=0; k<element.getSubreportParameters().size(); ++k) {
3781                JRSubreportParameter sp = (JRSubreportParameter)element.getSubreportParameters().get(k);
3782                if (sp.getName().equals( jrParameter.getName())) {
3783                    found = true;
3784                    break;
3785                }
3786            }
3787            
3788            if (!found) {
3789                JRSubreportParameter parameter = new JRSubreportParameter(jrParameter.getName(), "$P{" + jrParameter.getName() + "}");
3790                element.getSubreportParameters().addElement( parameter );
3791                dtm.addRow(new Object JavaDoc[]{parameter, parameter.getExpression()});
3792            }
3793            
3794        }
3795        
3796    }//GEN-LAST:event_jButtonCopyParamsFromMasterActionPerformed
3797

3798    private void jNumberFieldBCHeightjNumberFieldTopActionPerformed1(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldBCHeightjNumberFieldTopActionPerformed1
3799
if (jrf == null || getElementSelection().size()==0) return;
3800        // Set the new value for all selected elements...
3801
Enumeration e = getElementSelection().elements();
3802        while (e.hasMoreElements()) {
3803            BarcodeReportElement element = (BarcodeReportElement)e.nextElement();
3804            // 1. Set element properties...
3805
// For each panel, search
3806
element.setImageWidth((int)jNumberFieldBCWidth.getValue() );
3807        }
3808        repaintEditor();
3809        
3810        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3811        
3812    }//GEN-LAST:event_jNumberFieldBCHeightjNumberFieldTopActionPerformed1
3813

3814    private void jNumberFieldTopActionPerformed1(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldTopActionPerformed1
3815
if (jrf == null || getElementSelection().size()==0) return;
3816        // Set the new value for all selected elements...
3817
Enumeration e = getElementSelection().elements();
3818        while (e.hasMoreElements()) {
3819            BarcodeReportElement element = (BarcodeReportElement)e.nextElement();
3820            // 1. Set element properties...
3821
// For each panel, search
3822
element.setImageHeight((int)jNumberFieldBCHeight.getValue() );
3823        }
3824        repaintEditor();
3825        
3826        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3827        
3828    }//GEN-LAST:event_jNumberFieldTopActionPerformed1
3829

3830    private void jComboBoxHorizontalAlignmentActionPerformed1(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxHorizontalAlignmentActionPerformed1
3831
if (this.isInit()) return;
3832        
3833        // Set band to all....
3834
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxHorizontalAlignment1) == null || (Misc.getComboboxSelectedValue(jComboBoxHorizontalAlignment1)+"").equals("")) return;
3835        // Set the new value for all selected elements...
3836
Enumeration e = getElementSelection().elements();
3837        while (e.hasMoreElements()) {
3838            ImageReportElement element = (ImageReportElement)e.nextElement();
3839            element.setHorizontalAlignment(""+ Misc.getComboboxSelectedValue(jComboBoxHorizontalAlignment1));
3840        }
3841        
3842        this.jComboBoxHorizontalAlignment1.removeItem("");
3843        repaintEditor();
3844        
3845        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3846        
3847    }//GEN-LAST:event_jComboBoxHorizontalAlignmentActionPerformed1
3848

3849    private void jComboBoxVerticalAlignmentActionPerformed1(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxVerticalAlignmentActionPerformed1
3850
if (this.isInit()) return;
3851        
3852        // Set band to all....
3853
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxVerticalAlignment1) == null || (Misc.getComboboxSelectedValue(jComboBoxVerticalAlignment1)+"").equals("")) return;
3854        // Set the new value for all selected elements...
3855
Enumeration e = getElementSelection().elements();
3856        while (e.hasMoreElements()) {
3857            ImageReportElement element = (ImageReportElement)e.nextElement();
3858            element.setVerticalAlignment(""+ Misc.getComboboxSelectedValue(jComboBoxVerticalAlignment1));
3859        }
3860        
3861        this.jComboBoxVerticalAlignment1.removeItem("");
3862        repaintEditor();
3863        
3864        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3865        
3866    }//GEN-LAST:event_jComboBoxVerticalAlignmentActionPerformed1
3867

3868    private void jComboBoxScaleActionPerformed1(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxScaleActionPerformed1
3869
if (this.isInit()) return;
3870        
3871        // Set band to all....
3872
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue( jComboBoxScale1 ) == null || (Misc.getComboboxSelectedValue( jComboBoxScale1 )+"").equals("")) return;
3873        // Set the new value for all selected elements...
3874
Enumeration e = getElementSelection().elements();
3875        while (e.hasMoreElements()) {
3876            ImageReportElement element = (ImageReportElement)e.nextElement();
3877            element.setScaleImage(""+ Misc.getComboboxSelectedValue( jComboBoxScale1 ));
3878        }
3879        
3880        this.jComboBoxScale1.removeItem("");
3881        repaintEditor();
3882        
3883        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3884        
3885    }//GEN-LAST:event_jComboBoxScaleActionPerformed1
3886

3887    private void jComboBoxImageOnErrorActionPerformed1(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxImageOnErrorActionPerformed1
3888
if (this.isInit()) return;
3889        
3890        // Set band to all....
3891
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxImageOnError1) == null || (Misc.getComboboxSelectedValue(jComboBoxImageOnError1)+"").equals("")) return;
3892        // Set the new value for all selected elements...
3893
Enumeration e = getElementSelection().elements();
3894        while (e.hasMoreElements()) {
3895            ImageReportElement element = (ImageReportElement)e.nextElement();
3896            element.setOnErrorType(""+ Misc.getComboboxSelectedValue(jComboBoxImageOnError1));
3897        }
3898        
3899        this.jComboBoxImageOnError1.removeItem("");
3900        
3901        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3902        
3903    }//GEN-LAST:event_jComboBoxImageOnErrorActionPerformed1
3904

3905    private void jButton2ActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButton2ActionPerformed
3906

3907        if (this.isInit()) return;
3908        
3909        if (jrf == null || getElementSelection().size()==0) return;
3910        if (getElementSelection().size() > 0) {
3911            ReportElement re = (ReportElement)getElementSelection().elementAt(0);
3912            
3913            if (re instanceof CrosstabReportElement ) {
3914                it.businesslogic.ireport.crosstab.gui.CrosstabPropertiesDialog cpd = new it.businesslogic.ireport.crosstab.gui.CrosstabPropertiesDialog(MainFrame.getMainInstance(),true);
3915                cpd.setCurrentCrosstabReportElement( (CrosstabReportElement)re);
3916                cpd.setVisible(true);
3917            }
3918        }
3919        
3920    }//GEN-LAST:event_jButton2ActionPerformed
3921

3922    private void jTableCrosstabParametersMouseClicked(java.awt.event.MouseEvent JavaDoc evt) {//GEN-FIRST:event_jTableCrosstabParametersMouseClicked
3923
if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
3924            if (jTableCrosstabParameters.getSelectedRowCount() > 0) {
3925                jButtonModCrosstabParameterActionPerformed(null);
3926            }
3927        }
3928    }//GEN-LAST:event_jTableCrosstabParametersMouseClicked
3929

3930    private void jButtonRemCrosstabParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonRemCrosstabParameterActionPerformed
3931
if (this.isInit()) return;
3932        
3933        if (jrf == null || getElementSelection().size()==0) return;
3934        
3935        Enumeration e = getElementSelection().elements();
3936        CrosstabReportElement element = (CrosstabReportElement)e.nextElement();
3937        
3938        jTableCrosstabParameters.getSelectedRows();
3939        int[] rows= jTableCrosstabParameters.getSelectedRows();
3940        while (jTableCrosstabParameters.getSelectedRowCount() > 0) {
3941            int i = jTableCrosstabParameters.getSelectedRow();
3942            element.getCrosstabParameters().removeElement( jTableCrosstabParameters.getValueAt( i, 0) );
3943            ((javax.swing.table.DefaultTableModel JavaDoc)jTableCrosstabParameters.getModel()).removeRow(i);
3944            
3945        }
3946        jTableCrosstabParameters.updateUI();
3947        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3948        
3949        
3950    }//GEN-LAST:event_jButtonRemCrosstabParameterActionPerformed
3951

3952    private void jButtonModCrosstabParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonModCrosstabParameterActionPerformed
3953
if (this.isInit()) return;
3954        
3955        if (jrf == null || getElementSelection().size()==0) return;
3956        
3957        Enumeration e = getElementSelection().elements();
3958        CrosstabReportElement element = (CrosstabReportElement)e.nextElement();
3959        
3960        it.businesslogic.ireport.crosstab.CrosstabParameter parameter = (it.businesslogic.ireport.crosstab.CrosstabParameter)jTableCrosstabParameters.getValueAt( jTableCrosstabParameters.getSelectedRow(), 0);
3961        
3962        it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog jrpd = new it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog(this, true);
3963        jrpd.setParameter( parameter );
3964        jrpd.setVisible(true);
3965        
3966        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
3967            parameter.setName( jrpd.getParameter().getName() );
3968            parameter.setParameterValueExpression( jrpd.getParameter().getParameterValueExpression());
3969            
3970            jTableCrosstabParameters.setValueAt(parameter, jTableCrosstabParameters.getSelectedRow(), 0);
3971            jTableCrosstabParameters.setValueAt(parameter.getParameterValueExpression(), jTableCrosstabParameters.getSelectedRow(), 1);
3972            jTableCrosstabParameters.updateUI();
3973            
3974            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3975            
3976        }
3977        
3978    }//GEN-LAST:event_jButtonModCrosstabParameterActionPerformed
3979

3980    private void jButtonAddCrosstabParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonAddCrosstabParameterActionPerformed
3981
if (this.isInit()) return;
3982        
3983        if (jrf == null || getElementSelection().size()==0) return;
3984        // Set the new value for all selected elements...
3985
Enumeration e = getElementSelection().elements();
3986        CrosstabReportElement element = (CrosstabReportElement)e.nextElement();
3987        
3988        it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog jrpd = new it.businesslogic.ireport.crosstab.gui.CrosstabParameterDialog(this, true);
3989        jrpd.setVisible(true);
3990        
3991        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
3992            it.businesslogic.ireport.crosstab.CrosstabParameter parameter = jrpd.getParameter();
3993            element.getCrosstabParameters().addElement( parameter );
3994            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableCrosstabParameters.getModel();
3995            dtm.addRow(new Object JavaDoc[]{parameter, parameter.getParameterValueExpression()});
3996            jTableCrosstabParameters.updateUI();
3997            
3998            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
3999            
4000        }
4001    }//GEN-LAST:event_jButtonAddCrosstabParameterActionPerformed
4002

4003    private void jNumberFieldColumnBreakOffsetActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldColumnBreakOffsetActionPerformed
4004
if (jrf == null || getElementSelection().size()==0) return;
4005        // Set the new value for all selected elements...
4006
Enumeration e = getElementSelection().elements();
4007        
4008        while (e.hasMoreElements()) {
4009            CrosstabReportElement element = (CrosstabReportElement)e.nextElement();
4010            element.setColumnBreakOffset( (int)jNumberFieldColumnBreakOffset.getValue());
4011            
4012        }
4013        
4014        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4015        
4016    }//GEN-LAST:event_jNumberFieldColumnBreakOffsetActionPerformed
4017

4018    private void jCheckBoxRepeatRowHeadersActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxRepeatRowHeadersActionPerformed
4019
if (this.isInit()) return;
4020        
4021        // Set band to all....
4022
if (jrf == null || getElementSelection().size()==0) return;
4023        // Set the new value for all selected elements...
4024
Enumeration e = getElementSelection().elements();
4025        while (e.hasMoreElements()) {
4026            CrosstabReportElement element = (CrosstabReportElement)e.nextElement();
4027            element.setRepeatRowHeaders(jCheckBoxRepeatRowHeaders.isSelected());
4028        }
4029        
4030        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4031        
4032    }//GEN-LAST:event_jCheckBoxRepeatRowHeadersActionPerformed
4033

4034    private void jCheckBoxRepeatColumnHeadersActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxRepeatColumnHeadersActionPerformed
4035
if (this.isInit()) return;
4036        
4037        // Set band to all....
4038
if (jrf == null || getElementSelection().size()==0) return;
4039        // Set the new value for all selected elements...
4040
Enumeration e = getElementSelection().elements();
4041        while (e.hasMoreElements()) {
4042            CrosstabReportElement element = (CrosstabReportElement)e.nextElement();
4043            element.setRepeatColumnHeaders(jCheckBoxRepeatColumnHeaders.isSelected());
4044        }
4045        
4046        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4047        
4048    }//GEN-LAST:event_jCheckBoxRepeatColumnHeadersActionPerformed
4049

4050    private void jComboBoxStyleActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxStyleActionPerformed
4051

4052        if (this.isInit()) return;
4053        
4054        // Set the new value for all selected elements...
4055
Style s = null;
4056        if (jComboBoxStyle.getSelectedIndex() <= 0) {
4057            s = null;
4058        } else {
4059            s = (Style)jComboBoxStyle.getSelectedItem();
4060        }
4061        
4062        Enumeration e = getElementSelection().elements();
4063        while (e.hasMoreElements()) {
4064            ReportElement element = (ReportElement)e.nextElement();
4065            element.setStyle(s);
4066            
4067        }
4068        
4069        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4070        // Update coords...
4071
repaintEditor();
4072        
4073        
4074        
4075    }//GEN-LAST:event_jComboBoxStyleActionPerformed
4076

4077    private void jTableSubreportReturnValuesMouseClicked(java.awt.event.MouseEvent JavaDoc evt) {//GEN-FIRST:event_jTableSubreportReturnValuesMouseClicked
4078

4079        if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
4080            if (jTableSubreportReturnValues.getSelectedRowCount() > 0) {
4081                jButtonModReturnValueActionPerformed(null);
4082            }
4083        }
4084        
4085    }//GEN-LAST:event_jTableSubreportReturnValuesMouseClicked
4086

4087    private void jTableSubreportParametersMouseClicked(java.awt.event.MouseEvent JavaDoc evt) {//GEN-FIRST:event_jTableSubreportParametersMouseClicked
4088
if (evt.getClickCount() == 2 && evt.getButton() == evt.BUTTON1) {
4089            if (jTableSubreportParameters.getSelectedRowCount() > 0) {
4090                jButtonModParameterActionPerformed(null);
4091            }
4092        }
4093    }//GEN-LAST:event_jTableSubreportParametersMouseClicked
4094

4095    private void jComboBoxImageOnErrorActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxImageOnErrorActionPerformed
4096
if (this.isInit()) return;
4097        
4098        // Set band to all....
4099
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxImageOnError) == null || (Misc.getComboboxSelectedValue(jComboBoxImageOnError)+"").equals("")) return;
4100        // Set the new value for all selected elements...
4101
Enumeration e = getElementSelection().elements();
4102        while (e.hasMoreElements()) {
4103            ImageReportElement element = (ImageReportElement)e.nextElement();
4104            element.setOnErrorType(""+ Misc.getComboboxSelectedValue(jComboBoxImageOnError));
4105        }
4106        
4107        this.jComboBoxImageOnError.removeItem("");
4108        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4109        
4110    }//GEN-LAST:event_jComboBoxImageOnErrorActionPerformed
4111

4112    private void jSpinnerBookmarkLevelStateChanged(javax.swing.event.ChangeEvent JavaDoc evt) {//GEN-FIRST:event_jSpinnerBookmarkLevelStateChanged
4113
if (this.isInit()) return;
4114        
4115        if (jrf == null || getElementSelection().size()==0 || jComboBoxLinkTarget.getSelectedItem() == null || (jComboBoxLinkTarget.getSelectedItem()+"").equals("")) return;
4116        Enumeration e = getElementSelection().elements();
4117        while (e.hasMoreElements()) {
4118            HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4119            element.setBookmarkLevel( ((Integer JavaDoc)jSpinnerBookmarkLevel.getValue()).intValue() );
4120        }
4121        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4122        
4123    }//GEN-LAST:event_jSpinnerBookmarkLevelStateChanged
4124

4125    private void jButtonRemReturnValueActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonRemReturnValueActionPerformed
4126
if (this.isInit()) return;
4127        
4128        if (jrf == null || getElementSelection().size()==0) return;
4129        
4130        Enumeration e = getElementSelection().elements();
4131        SubReportElement element = (SubReportElement)e.nextElement();
4132        
4133        //jTableSubreportReturnValues.getSelectedRows();
4134
//int[] rows= jTableSubreportReturnValues.getSelectedRows();
4135
//for (int i=rows.length-1; i>=0; --i) {
4136

4137        javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportReturnValues.getModel();
4138        while (jTableSubreportReturnValues.getSelectedRow() >= 0 ) {
4139            element.getReturnValues().removeElement( jTableSubreportReturnValues.getValueAt( jTableSubreportReturnValues.getSelectedRow(), 0) );
4140            dtm.removeRow( jTableSubreportReturnValues.getSelectedRow() );
4141        }
4142        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4143        
4144    }//GEN-LAST:event_jButtonRemReturnValueActionPerformed
4145

4146    private void jButtonModReturnValueActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonModReturnValueActionPerformed
4147
if (this.isInit()) return;
4148        
4149        if (jrf == null || getElementSelection().size()==0) return;
4150        
4151        Enumeration e = getElementSelection().elements();
4152        SubReportElement element = (SubReportElement)e.nextElement();
4153        
4154        JRSubreportReturnValue returnValue = (JRSubreportReturnValue)jTableSubreportReturnValues.getValueAt( jTableSubreportReturnValues.getSelectedRow(), 0);
4155        
4156        JRSubreportReturnValueDialog jrpd = new JRSubreportReturnValueDialog(this, true);
4157        jrpd.setSubreportReturnValue( returnValue );
4158        jrpd.setVisible(true);
4159        
4160        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4161            returnValue.setSubreportVariable( jrpd.getSubreportReturnValue().getSubreportVariable() );
4162            returnValue.setToVariable( jrpd.getSubreportReturnValue().getToVariable() );
4163            returnValue.setCalculation( jrpd.getSubreportReturnValue().getCalculation() );
4164            returnValue.setIncrementFactoryClass( jrpd.getSubreportReturnValue().getIncrementFactoryClass() );
4165            
4166            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportReturnValues.getModel();
4167            dtm.setValueAt(returnValue, jTableSubreportReturnValues.getSelectedRow(), 0);
4168            dtm.setValueAt(returnValue.getToVariable(), jTableSubreportReturnValues.getSelectedRow(), 1);
4169            
4170            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4171            
4172        }
4173    }//GEN-LAST:event_jButtonModReturnValueActionPerformed
4174

4175    private void jButtonAddReturnValueActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonAddReturnValueActionPerformed
4176
if (this.isInit()) return;
4177        
4178        if (jrf == null || getElementSelection().size()==0) return;
4179        // Set the new value for all selected elements...
4180
Enumeration e = getElementSelection().elements();
4181        SubReportElement element = (SubReportElement)e.nextElement();
4182        
4183        Vector variables = it.businesslogic.ireport.gui.MainFrame.getMainInstance().getActiveReportFrame().getReport().getVariables();
4184        int var_count = 0;
4185        for (int i=0; i<variables.size(); ++i) {
4186            JRVariable var = (JRVariable)variables.elementAt(i);
4187            if (!var.isBuiltin()) {
4188                var_count++;
4189            }
4190        }
4191        
4192        if (var_count == 0) {
4193            javax.swing.JOptionPane.showMessageDialog(this,
4194                    I18n.getString("messages.elementPropertiesDialgo.noVariableAvailable","No variables are available in this report to store a return value.\nPlease define a variable first."),
4195                    I18n.getString("messages.elementPropertiesDialgo.noVariableAvailableCaption","No variables"),
4196                    javax.swing.JOptionPane.WARNING_MESSAGE);
4197            return;
4198        }
4199        
4200        JRSubreportReturnValueDialog jrpd = new JRSubreportReturnValueDialog(this, true);
4201        jrpd.setVisible(true);
4202        
4203        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4204            it.businesslogic.ireport.JRSubreportReturnValue returnValue = jrpd.getSubreportReturnValue();
4205            element.getReturnValues().addElement( returnValue );
4206            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportReturnValues.getModel();
4207            dtm.addRow(new Object JavaDoc[]{returnValue, returnValue.getToVariable()});
4208            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4209            
4210        }
4211    }//GEN-LAST:event_jButtonAddReturnValueActionPerformed
4212

4213    private void jCheckBoxImageIsLazyActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxImageIsLazyActionPerformed
4214
if (jrf == null || getElementSelection().size()==0) return;
4215        // Set the new value for all selected elements...
4216
Enumeration e = getElementSelection().elements();
4217        while (e.hasMoreElements()) {
4218            ImageReportElement element = (ImageReportElement)e.nextElement();
4219            element.setIsLazy(jCheckBoxImageIsLazy.isSelected() );
4220        }
4221        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4222        
4223    }//GEN-LAST:event_jCheckBoxImageIsLazyActionPerformed
4224

4225    private void jComboBoxPatternFocusLost(java.awt.event.FocusEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxPatternFocusLost
4226
//jComboBoxPatternActionPerformed(new java.awt.event.ActionEvent(evt.getSource(),0,""));
4227
}//GEN-LAST:event_jComboBoxPatternFocusLost
4228

4229    private void jComboBoxLinkTargetActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxLinkTargetActionPerformed
4230
if (this.isInit()) return;
4231        
4232        if (jrf == null || getElementSelection().size()==0 || jComboBoxLinkTarget.getSelectedItem() == null || (jComboBoxLinkTarget.getSelectedItem()+"").equals("")) return;
4233        Enumeration e = getElementSelection().elements();
4234        while (e.hasMoreElements()) {
4235            HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4236            element.setHyperlinkTarget( ""+jComboBoxLinkTarget.getSelectedItem());
4237        }
4238        jComboBoxLinkTarget.removeItem("");
4239        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4240        
4241    }//GEN-LAST:event_jComboBoxLinkTargetActionPerformed
4242

4243    private void jButton1ActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButton1ActionPerformed
4244

4245        if (getElementSelection().elementAt(0) instanceof ChartReportElement) {
4246            it.businesslogic.ireport.chart.gui.IReportChartDialog icd = new it.businesslogic.ireport.chart.gui.IReportChartDialog(this,true);
4247            icd.setJReportFrame( jrf );
4248            ChartReportElement cre = (ChartReportElement)getElementSelection().elementAt(0);
4249            icd.setProperties(cre.getProps());
4250            icd.setVisible(true);
4251            if (icd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4252                // Integrate properties...
4253
Properties props = icd.getProperties();
4254                Iterator keys = props.keySet().iterator();
4255                while (keys.hasNext()) {
4256                    String JavaDoc key = ""+keys.next();
4257                    String JavaDoc val = props.getProperty(key);
4258                    cre.getProps().setProperty(key, val);
4259                    
4260                }
4261                
4262                cre.updateChartImage();
4263                jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4264                
4265                //setImg( it.businesslogic.ireport.chart.AvailableCharts.getChartIcon( props.getProperty("chartName")).getImage());
4266
repaintEditor();
4267            }
4268        } else if (getElementSelection().elementAt(0) instanceof ChartReportElement2) {
4269            ChartReportElement2 cre = (ChartReportElement2)getElementSelection().elementAt(0);
4270            it.businesslogic.ireport.chart.gui.ChartPropertiesDialog cpd = new it.businesslogic.ireport.chart.gui.ChartPropertiesDialog(this,true);
4271            
4272            try {
4273            cpd.setJReportFrame( jrf );
4274            cpd.setChartElement(cre);
4275            cpd.setVisible(true);
4276            } catch (Exception JavaDoc ex)
4277            {
4278                ex.printStackTrace();
4279            }
4280            if (cpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4281                //repaintEditor();
4282
}
4283        }
4284        
4285        
4286    }//GEN-LAST:event_jButton1ActionPerformed
4287

4288    private void jComboBoxImageGroup1ActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxImageGroup1ActionPerformed
4289
if (this.isInit()) return;
4290        
4291        // Set band to all....
4292
if (jrf == null || getElementSelection().size()==0 || jComboBoxImageGroup1.getSelectedItem() == null || (jComboBoxImageGroup1.getSelectedItem()+"").equals("")) return;
4293        // Set the new value for all selected elements...
4294
Enumeration e = getElementSelection().elements();
4295        while (e.hasMoreElements()) {
4296            ReportElement element = (ReportElement)e.nextElement();
4297            if (element instanceof ImageReportElement) {
4298                ((ImageReportElement)element).setEvaluationGroup(""+ jComboBoxImageGroup1.getSelectedItem());
4299            } else if (element instanceof ChartReportElement2) {
4300                ((ChartReportElement2)element).setEvaluationGroup(""+ jComboBoxImageGroup1.getSelectedItem());
4301            }
4302        }
4303        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4304        
4305        this.jComboBoxImageGroup1.removeItem("");
4306    }//GEN-LAST:event_jComboBoxImageGroup1ActionPerformed
4307

4308    private void jComboBoxEvaluationTime1ActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxEvaluationTime1ActionPerformed
4309
if (this.isInit()) return;
4310        
4311        // Set band to all....
4312
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxEvaluationTime1) == null || (Misc.getComboboxSelectedValue(jComboBoxEvaluationTime1)+"").equals("")) return;
4313        // Set the new value for all selected elements...
4314
Enumeration e = getElementSelection().elements();
4315        while (e.hasMoreElements()) {
4316            ReportElement element = (ReportElement)e.nextElement();
4317            if (element instanceof ImageReportElement) {
4318                ((ImageReportElement)element).setEvaluationTime(""+ Misc.getComboboxSelectedValue(jComboBoxEvaluationTime1));
4319            } else if (element instanceof ChartReportElement2) {
4320                
4321                ((ChartReportElement2)element).setEvaluationTime(""+ Misc.getComboboxSelectedValue(jComboBoxEvaluationTime1));
4322            }
4323        }
4324        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4325        
4326        this.jComboBoxEvaluationTime1.removeItem("");
4327    }//GEN-LAST:event_jComboBoxEvaluationTime1ActionPerformed
4328

4329    private void jButtonCreatePatternActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonCreatePatternActionPerformed
4330

4331        FieldPatternDialog fpd = new FieldPatternDialog(MainFrame.getMainInstance() ,true);
4332        fpd.setVisible(true);
4333        if (fpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4334            jComboBoxPattern.setSelectedItem( fpd.getPattern() );
4335        }
4336        
4337    }//GEN-LAST:event_jButtonCreatePatternActionPerformed
4338

4339    private void jComboBoxBarcodeGroupActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxBarcodeGroupActionPerformed
4340
if (this.isInit()) return;
4341        
4342        // Set band to all....
4343
if (jrf == null || getElementSelection().size()==0 || jComboBoxBarcodeGroup.getSelectedItem() == null || (jComboBoxBarcodeGroup.getSelectedItem()+"").equals("")) return;
4344        // Set the new value for all selected elements...
4345
Enumeration e = getElementSelection().elements();
4346        while (e.hasMoreElements()) {
4347            ImageReportElement element = (ImageReportElement)e.nextElement();
4348            element.setEvaluationGroup(""+ jComboBoxBarcodeGroup.getSelectedItem());
4349        }
4350        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4351        
4352        this.jComboBoxBarcodeGroup.removeItem("");
4353    }//GEN-LAST:event_jComboBoxBarcodeGroupActionPerformed
4354

4355    private void jComboBoxEvaluationTimeBarcodeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxEvaluationTimeBarcodeActionPerformed
4356
if (this.isInit()) return;
4357        
4358        // Set band to all....
4359
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxEvaluationTimeBarcode) == null || (Misc.getComboboxSelectedValue(jComboBoxEvaluationTimeBarcode)+"").equals("")) return;
4360        // Set the new value for all selected elements...
4361
Enumeration e = getElementSelection().elements();
4362        while (e.hasMoreElements()) {
4363            ImageReportElement element = (ImageReportElement)e.nextElement();
4364            element.setEvaluationTime(""+ Misc.getComboboxSelectedValue(jComboBoxEvaluationTimeBarcode));
4365        }
4366        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4367        
4368        this.jComboBoxEvaluationTimeBarcode.removeItem("");
4369    }//GEN-LAST:event_jComboBoxEvaluationTimeBarcodeActionPerformed
4370

4371    private void jCheckBoxStyledTextActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxStyledTextActionPerformed
4372
if (this.isInit()) return;
4373        
4374        // Set band to all....
4375
if (jrf == null || getElementSelection().size()==0) return;
4376        // Set the new value for all selected elements...
4377
Enumeration e = getElementSelection().elements();
4378        while (e.hasMoreElements()) {
4379            TextReportElement element = (TextReportElement)e.nextElement();
4380            element.setIsStyledText(jCheckBoxStyledText.isSelected());
4381            element.setFont(null);
4382            /* Adjust PDF font...*/
4383        }
4384        fireReportElementsChangedEvent("styledText", ""+jCheckBoxStyledText.isSelected());
4385        repaintEditor();
4386    }//GEN-LAST:event_jCheckBoxStyledTextActionPerformed
4387

4388    private void jComboBoxRotationActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxRotationActionPerformed
4389
if (this.isInit()) return;
4390        
4391        // Set band to all....
4392
if (jrf == null || getElementSelection().size()==0 || Misc.getComboboxSelectedValue(jComboBoxRotation) == null || (Misc.getComboboxSelectedValue(jComboBoxRotation)+"").equals("")) return;
4393        // Set the new value for all selected elements...
4394
Enumeration e = getElementSelection().elements();
4395        while (e.hasMoreElements()) {
4396            TextReportElement element = (TextReportElement)e.nextElement();
4397            element.setRotate(""+ Misc.getComboboxSelectedValue(jComboBoxRotation));
4398        }
4399        fireReportElementsChangedEvent("rotate", ""+Misc.getComboboxSelectedValue(jComboBoxRotation));
4400        this.jComboBoxRotation.removeItem("");
4401        repaintEditor();
4402    }//GEN-LAST:event_jComboBoxRotationActionPerformed
4403

4404    private void BarcodeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_BarcodeActionPerformed
4405
if (this.isInit()) return;
4406            
4407            // Set band to all....
4408
if (jrf == null || getElementSelection().size()==0) return;
4409            // Set the new value for all selected elements...
4410
Enumeration e = getElementSelection().elements();
4411            while (e.hasMoreElements()) {
4412                BarcodeReportElement element = (BarcodeReportElement) e.nextElement();
4413                
4414                if (jComboBoxBarcodeType.getSelectedItem() != null && jComboBoxBarcodeType.getSelectedItem() instanceof Tag) {
4415                    element.setType( Integer.parseInt(""+((Tag)jComboBoxBarcodeType.getSelectedItem()).getValue()) );
4416                }
4417                
4418                element.setText(jBarcodeExpressionArea.getText());
4419                element.setShowText(jCheckBoxBarcodeShowText.isSelected());
4420                element.setCheckSum(jCheckBoxBarcodeCheckSum.isSelected());
4421                repaintEditor();
4422                
4423                //show last error in console
4424
if(element.getLastError() != null){
4425                    jrf.getMainFrame().logOnConsole("Error BarcodeReportElement(" + element.getName() + "): " + element.getLastError()+"\n");
4426                }
4427            }
4428    }//GEN-LAST:event_BarcodeActionPerformed
4429

4430        private void jComboBoxBarcodeTypeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxBarcodeTypeActionPerformed
4431
BarcodeActionPerformed(evt);
4432        }//GEN-LAST:event_jComboBoxBarcodeTypeActionPerformed
4433

4434    private void jNumberFieldLeftActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldLeftActionPerformed
4435
if (jrf == null || getElementSelection().size()==0) return;
4436        // Set the new value for all selected elements...
4437
Enumeration e = getElementSelection().elements();
4438        while (e.hasMoreElements()) {
4439            ReportElement element = (ReportElement)e.nextElement();
4440            if (element instanceof BreakReportElement) continue;
4441            int normalization = 0;
4442            if (element.getParentElement() != null) {
4443                normalization = (int)(element.getParentElement().getPosition().getX()) - 10;
4444            } else if (element.getCell() != null) {
4445                normalization = element.getCell().getLeft();
4446            } else {
4447                normalization = jrf.getReport().getLeftMargin();
4448            }
4449            
4450            element.trasform( new Point( (int)jNumberFieldLeft.getValue()- (element.getPosition().x-10- normalization) ,0 ), TransformationType.TRANSFORMATION_MOVE);
4451            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , element , ReportElementChangedEvent.CHANGED));
4452        }
4453        repaintEditor();
4454    }//GEN-LAST:event_jNumberFieldLeftActionPerformed
4455

4456    private void jNumberFieldTopActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldTopActionPerformed
4457
if (jrf == null || getElementSelection().size()==0) return;
4458        // Set the new value for all selected elements...
4459
Enumeration e = getElementSelection().elements();
4460        Band last_band = null;
4461        int y_location = 0;
4462        while (e.hasMoreElements()) {
4463            ReportElement element = (ReportElement)e.nextElement();
4464            // 1. Set element properties...
4465
// For each panel, search
4466
if (element.getBand() != null && (last_band == null || last_band != element.getBand())) {
4467                y_location = this.jrf.getReport().getBandYLocation(element.getBand());
4468                last_band = element.getBand();
4469            }
4470            
4471            if (element.getBand() == null && element.getCell() !=null) {
4472                y_location = element.getCell().getTop();
4473            }
4474            
4475            if (element.getParentElement() != null) {
4476                y_location = (int)(element.getParentElement().getPosition().getY())-10;
4477            }
4478            
4479            element.trasform( new Point(0, (int)jNumberFieldTop.getValue()- (element.getPosition().y - 10 - y_location) ) , TransformationType.TRANSFORMATION_MOVE);
4480            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , element , ReportElementChangedEvent.CHANGED));
4481            
4482        }
4483        repaintEditor();
4484    }//GEN-LAST:event_jNumberFieldTopActionPerformed
4485

4486    private void jComboBoxBandActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxBandActionPerformed
4487
if (this.isInit()) return;
4488        
4489        // Set band to all....
4490
if (jrf == null || getElementSelection().size()==0 || jComboBoxBand.getSelectedItem() == null || (jComboBoxBand.getSelectedIndex() == 0 && (jComboBoxBand.getSelectedItem()+"").trim().equals("") )) return;
4491        // Set the new value for all selected elements...
4492
Enumeration e = getElementSelection().elements();
4493        while (e.hasMoreElements()) {
4494            ReportElement element = (ReportElement)e.nextElement();
4495            
4496            if (jrf.getSelectedCrosstabEditorPanel() == null) {
4497                element.setBand((Band) jComboBoxBand.getSelectedItem() ) ;
4498            } else {
4499                element.setCell((CrosstabCell) jComboBoxBand.getSelectedItem() ) ;
4500                element.setRelativePosition( new Point( element.getPosition().x - element.getCell().getLeft() - 10, element.getPosition().y - element.getCell().getTop() - 10 ));
4501            }
4502            
4503        }
4504        jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection(), ReportElementChangedEvent.CHANGED));
4505        
4506        // Update coords...
4507
repaintEditor();
4508        
4509        e = getElementSelection().elements();
4510        boolean isTheFirstElement = true;
4511        if (jrf.getSelectedCrosstabEditorPanel() == null) {
4512            Band last_band = null;
4513            int y_location = 0;
4514            while (e.hasMoreElements()) {
4515                ReportElement re = (ReportElement)e.nextElement();
4516                // 1. Set element properties...
4517
// For each panel, search
4518
if (last_band == null || last_band != re.getBand()) {
4519                    y_location = this.jrf.getReport().getBandYLocation(re.getBand());
4520                    last_band = re.getBand();
4521                }
4522                
4523                this.setElementNumber(isTheFirstElement, re.getWidth(), jNumberFieldWidth);
4524                this.setElementNumber(isTheFirstElement, re.getHeight(), jNumberFieldHeight);
4525                this.setElementNumber(isTheFirstElement, re.getPosition().x - 10 - this.jrf.getReport().getLeftMargin(), jNumberFieldLeft);
4526                this.setElementNumber(isTheFirstElement, re.getPosition().y - y_location - 10, jNumberFieldTop);
4527                
4528                this.setCheckBox(isTheFirstElement, re.getTransparent().equals("Transparent"),jCheckBoxTransparent);
4529                isTheFirstElement=false;
4530            }
4531        } else {
4532            CrosstabCell cell = null;
4533            while (e.hasMoreElements()) {
4534                ReportElement re = (ReportElement)e.nextElement();
4535                cell = re.getCell();
4536                if (cell != null) {
4537                    this.setElementNumber(isTheFirstElement, re.getPosition().x - 10 - cell.getLeft(), jNumberFieldLeft);
4538                    this.setElementNumber(isTheFirstElement, re.getPosition().y - 10 - cell.getTop(), jNumberFieldTop);
4539                    isTheFirstElement=false;
4540                }
4541            }
4542        }
4543        
4544        if (!(""+this.jComboBoxBand.getSelectedItem()).equals("")) {
4545            this.jComboBoxBand.removeItem("");
4546        }
4547    }//GEN-LAST:event_jComboBoxBandActionPerformed
4548

4549    private void jNumberFieldHeightActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldHeightActionPerformed
4550
if (jrf == null || getElementSelection().size()==0) return;
4551        // Set the new value for all selected elements...
4552
Enumeration e = getElementSelection().elements();
4553        while (e.hasMoreElements()) {
4554            ReportElement element = (ReportElement)e.nextElement();
4555            if (element instanceof BreakReportElement) continue;
4556            element.trasform( new Point(0, (int)jNumberFieldHeight.getValue()- element.getHeight() ), TransformationType.TRANSFORMATION_RESIZE_S);
4557            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , element , ReportElementChangedEvent.CHANGED));
4558        }
4559        repaintEditor();
4560    }//GEN-LAST:event_jNumberFieldHeightActionPerformed
4561

4562    private void jNumberFieldWidthActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jNumberFieldWidthActionPerformed
4563
if (jrf == null || getElementSelection().size()==0) return;
4564        // Set the new value for all selected elements...
4565
Enumeration e = getElementSelection().elements();
4566        while (e.hasMoreElements()) {
4567            ReportElement element = (ReportElement)e.nextElement();
4568            if (element instanceof BreakReportElement) continue;
4569            element.trasform( new Point( (int)jNumberFieldWidth.getValue()- element.getWidth(),0 ), TransformationType.TRANSFORMATION_RESIZE_E);
4570            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , element , ReportElementChangedEvent.CHANGED));
4571        }
4572        
4573        repaintEditor();
4574    }//GEN-LAST:event_jNumberFieldWidthActionPerformed
4575

4576    private void jButtonForegroundActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonForegroundActionPerformed
4577
java.awt.Color JavaDoc color = javax.swing.JColorChooser.showDialog( null, "Select foreground color...",
4578                this.jButtonForeground.getBackground());
4579        if (color != null) {
4580            this.jButtonForeground.setBackground(color);
4581            
4582            if (jrf == null || getElementSelection().size()==0) return;
4583            // Set the new value for all selected elements...
4584
Enumeration e = getElementSelection().elements();
4585            while (e.hasMoreElements()) {
4586                ReportElement element = (ReportElement)e.nextElement();
4587                element.setFgcolor(color);
4588            }
4589            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4590            repaintEditor();
4591        }
4592    }//GEN-LAST:event_jButtonForegroundActionPerformed
4593

4594    private void jButtonBackgroundActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonBackgroundActionPerformed
4595

4596        java.awt.Color JavaDoc color = javax.swing.JColorChooser.showDialog( null, "Select background color...",
4597                this.jButtonBackground.getBackground());
4598        
4599        if (color != null) {
4600            this.jButtonBackground.setBackground(color);
4601            if (jrf == null || getElementSelection().size()==0) return;
4602            // Set the new value for all selected elements...
4603
Enumeration e = getElementSelection().elements();
4604            while (e.hasMoreElements()) {
4605                ReportElement element = (ReportElement)e.nextElement();
4606                element.setBgcolor( color );
4607                
4608                // Adaptation by Robert Lamping
4609
// RFE: 704101 [B]
4610
// setting a background color, resets transparency to false.
4611
if (!element.getTransparent().equals("Opaque")) {
4612                    element.setTransparent("Opaque");
4613                }
4614                // end of adaptation
4615
}
4616            jrf.fireReportListenerReportElementsChanged(new ReportElementChangedEvent(jrf , getElementSelection() , ReportElementChangedEvent.CHANGED));
4617            // Adaptation by Robert Lamping
4618
// RFE: 704101 [B]
4619
// setting a background color, resets transparency to false.
4620
setInit(true);
4621            this.jCheckBoxTransparent.setSelected( false );
4622            setInit(false);
4623            jrf.getMainFrame().logOnConsole("Transparency switched off! \n");
4624            // End of adaptation
4625

4626            repaintEditor();
4627        }
4628        
4629        
4630        
4631        
4632        
4633    }//GEN-LAST:event_jButtonBackgroundActionPerformed
4634

4635    private void jComboBoxReportFontActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxReportFontActionPerformed
4636
if (this.isInit()) return;
4637        
4638        // Set band to all....
4639
if (jrf == null || getElementSelection().size()==0 || jComboBoxReportFont.getSelectedItem() == null) return;
4640        
4641        
4642        // Set the new value for all selected elements...
4643
// Looking for the selected report font...
4644
Enumeration fonts = jrf.getReport().getFonts().elements();
4645        IReportFont font = null;
4646        while (fonts.hasMoreElements()) {
4647            font = (IReportFont)fonts.nextElement();
4648            if (font != null && font.getReportFont().equals(""+ jComboBoxReportFont.getSelectedItem() ) ) {
4649                break;
4650            } else
4651                font = null;
4652        }
4653        
4654        String JavaDoc reportFontName = "";
4655        if (font==null)
4656            reportFontName = "";
4657        else
4658            reportFontName = font.getReportFont();
4659        
4660        Enumeration e = getElementSelection().elements();
4661        while (e.hasMoreElements()) {
4662            TextReportElement element = (TextReportElement)e.nextElement();
4663            element.setReportFont(reportFontName);
4664            if (font != null) {
4665                element.setFontName( font.getFontName());
4666                element.setBold( font.isBold());
4667                element.setItalic( font.isItalic());
4668                element.setUnderline( font.isUnderline());
4669                element.setStrikeTrought( font.isStrikeTrought());
4670                element.setPDFFontName( font.getPDFFontName());
4671                element.setPdfEmbedded( font.isPdfEmbedded());
4672                element.setPdfEncoding( font.getPdfEncoding());
4673                element.setTTFFont( font.getTTFFont());
4674                element.setFontSize( font.getFontSize());
4675            }
4676        }
4677        
4678        this.updateSelection();
4679        this.jrf.getReportPanel().repaint();
4680        
4681        this.jComboBoxFontName.removeItem("");
4682        repaintEditor();
4683    }//GEN-LAST:event_jComboBoxReportFontActionPerformed
4684

4685    private void jComboBoxLinkTypeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxLinkTypeActionPerformed
4686
if (this.isInit()) return;
4687        
4688        if (jrf == null || getElementSelection().size()==0 || jComboBoxLinkType.getSelectedItem() == null || (jComboBoxLinkType.getSelectedItem()+"").equals("")) return;
4689        Enumeration e = getElementSelection().elements();
4690        
4691        jTabbedPane2.removeAll();
4692        
4693        if (((String JavaDoc)this.jComboBoxLinkType.getSelectedItem()).equals("None")) {
4694            // Set to blank all link fields...
4695
while (e.hasMoreElements()) {
4696                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4697                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4698                element.setHyperlinkReferenceExpression("");
4699                element.setHyperlinkAnchorExpression("");
4700                element.setHyperlinkPageExpression("");
4701                element.getLinkParameters().clear();
4702                this.jRTextExpressionAreaAnchor.setText("");
4703                this.jRTextExpressionAreaAnchor.setEnabled(false);
4704                this.jLabelAnchor.setEnabled(false);
4705                this.jRTextExpressionAreaPage.setText("");
4706                this.jRTextExpressionAreaPage.setEnabled(false);
4707                this.jLabelPage.setEnabled(false);
4708                this.jRTextExpressionAreaReference.setText("");
4709                this.jRTextExpressionAreaReference.setEnabled(false);
4710                this.jLabelReference.setEnabled(false);
4711                //this.jPanelAnchor.setVisible(false);
4712
//this.jPanelPage.setVisible(false);
4713
//this.jPanelReference.setVisible(false);
4714
}
4715        } else if (((String JavaDoc)this.jComboBoxLinkType.getSelectedItem()).equals("Reference")) {
4716            // Set to blank all link fields...
4717
while (e.hasMoreElements()) {
4718                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4719                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4720                element.setHyperlinkReferenceExpression("");
4721                element.setHyperlinkAnchorExpression("");
4722                element.setHyperlinkPageExpression("");
4723                this.jRTextExpressionAreaAnchor.setText("");
4724                this.jRTextExpressionAreaAnchor.setEnabled(false);
4725                this.jLabelAnchor.setEnabled(false);
4726                this.jRTextExpressionAreaPage.setText("");
4727                this.jRTextExpressionAreaPage.setEnabled(false);
4728                this.jLabelPage.setEnabled(false);
4729                this.jRTextExpressionAreaReference.setText("");
4730                this.jRTextExpressionAreaReference.setEnabled(true);
4731                this.jLabelReference.setEnabled(true);
4732                
4733                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"), this.jPanelReference);
4734                //this.jPanelAnchor.setVisible(false);
4735
//this.jPanelPage.setVisible(false);
4736
if (getElementSelection().size()==1) jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"), this.jPanelLinkParams);
4737                
4738            }
4739        } else if (((String JavaDoc)this.jComboBoxLinkType.getSelectedItem()).equals("LocalAnchor")) {
4740            // Set to blank all link fields...
4741
while (e.hasMoreElements()) {
4742                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4743                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4744                element.setHyperlinkReferenceExpression("");
4745                element.setHyperlinkAnchorExpression("");
4746                element.setHyperlinkPageExpression("");
4747                this.jRTextExpressionAreaAnchor.setText("");
4748                this.jRTextExpressionAreaAnchor.setEnabled(true);
4749                this.jLabelAnchor.setEnabled(true);
4750                this.jRTextExpressionAreaPage.setText("");
4751                this.jRTextExpressionAreaPage.setEnabled(false);
4752                this.jLabelPage.setEnabled(false);
4753                this.jRTextExpressionAreaReference.setText("");
4754                this.jRTextExpressionAreaReference.setEnabled(false);
4755                this.jLabelReference.setEnabled(false);
4756                
4757                //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
4758
jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
4759                //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
4760
if (getElementSelection().size()==1) jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"), this.jPanelLinkParams);
4761            }
4762        } else if (((String JavaDoc)this.jComboBoxLinkType.getSelectedItem()).equals("LocalPage")) {
4763            // Set to blank all link fields...
4764
while (e.hasMoreElements()) {
4765                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4766                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4767                element.setHyperlinkReferenceExpression("");
4768                element.setHyperlinkAnchorExpression("");
4769                element.setHyperlinkPageExpression("");
4770                this.jRTextExpressionAreaAnchor.setText("");
4771                this.jRTextExpressionAreaAnchor.setEnabled(false);
4772                this.jLabelAnchor.setEnabled(false);
4773                this.jRTextExpressionAreaPage.setText("");
4774                this.jRTextExpressionAreaPage.setEnabled(true);
4775                this.jLabelPage.setEnabled(true);
4776                this.jRTextExpressionAreaReference.setText("");
4777                this.jRTextExpressionAreaReference.setEnabled(false);
4778                this.jLabelReference.setEnabled(false);
4779                
4780                //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
4781
//jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
4782
jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
4783                if (getElementSelection().size()==1) jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"), this.jPanelLinkParams);
4784            }
4785        }
4786        
4787        else if (((String JavaDoc)this.jComboBoxLinkType.getSelectedItem()).equals("RemoteAnchor")) {
4788            // Set to blank all link fields...
4789
while (e.hasMoreElements()) {
4790                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4791                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4792                element.setHyperlinkReferenceExpression("");
4793                element.setHyperlinkAnchorExpression("");
4794                element.setHyperlinkPageExpression("");
4795                this.jRTextExpressionAreaAnchor.setText("");
4796                this.jRTextExpressionAreaAnchor.setEnabled(true);
4797                this.jLabelAnchor.setEnabled(true);
4798                this.jRTextExpressionAreaPage.setText("");
4799                this.jRTextExpressionAreaPage.setEnabled(false);
4800                this.jLabelPage.setEnabled(false);
4801                this.jRTextExpressionAreaReference.setText("");
4802                this.jRTextExpressionAreaReference.setEnabled(true);
4803                this.jLabelReference.setEnabled(true);
4804                
4805                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
4806                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
4807                //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
4808
if (getElementSelection().size()==1) jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"), this.jPanelLinkParams);
4809            }
4810        } else if (((String JavaDoc)this.jComboBoxLinkType.getSelectedItem()).equals("RemotePage")) {
4811            // Set to blank all link fields...
4812
while (e.hasMoreElements()) {
4813                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4814                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4815                element.setHyperlinkReferenceExpression("");
4816                element.setHyperlinkAnchorExpression("");
4817                element.setHyperlinkPageExpression("");
4818                this.jRTextExpressionAreaAnchor.setText("");
4819                this.jRTextExpressionAreaAnchor.setEnabled(false);
4820                this.jLabelAnchor.setEnabled(false);
4821                this.jRTextExpressionAreaPage.setText("");
4822                this.jRTextExpressionAreaPage.setEnabled(true);
4823                this.jLabelPage.setEnabled(true);
4824                this.jRTextExpressionAreaReference.setText("");
4825                this.jRTextExpressionAreaReference.setEnabled(true);
4826                this.jLabelReference.setEnabled(true);
4827                
4828                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
4829                //jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
4830
jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
4831                if (getElementSelection().size()==1) jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"), this.jPanelLinkParams);
4832            }
4833        } else {
4834            // Set to blank all link fields...
4835
while (e.hasMoreElements()) {
4836                HyperLinkableReportElement element = (HyperLinkableReportElement)e.nextElement();
4837                element.setHyperlinkType( ""+jComboBoxLinkType.getSelectedItem());
4838                //element.setHyperlinkReferenceExpression("");
4839
//element.setHyperlinkAnchorExpression("");
4840
//element.setHyperlinkPageExpression("");
4841
//this.jRTextExpressionAreaAnchor.setText("");
4842
this.jRTextExpressionAreaAnchor.setEnabled(true);
4843                this.jLabelAnchor.setEnabled(true);
4844                //this.jRTextExpressionAreaPage.setText("");
4845
this.jRTextExpressionAreaPage.setEnabled(true);
4846                this.jLabelPage.setEnabled(true);
4847                //this.jRTextExpressionAreaReference.setText("");
4848
this.jRTextExpressionAreaReference.setEnabled(true);
4849                this.jLabelReference.setEnabled(true);
4850                
4851                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Reference","Reference"),this.jPanelReference);
4852                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Anchor","Anchor"), this.jPanelAnchor);
4853                jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.Page","Page"),this.jPanelPage);
4854                if (getElementSelection().size()==1) jTabbedPane2.addTab(I18n.getString("sectionItemHyperlinkPanel.tab.LinkParameters","Link parameters"),this.jPanelLinkParams);
4855            }
4856        }
4857        
4858        jComboBoxLinkType.removeItem("");
4859    }//GEN-LAST:event_jComboBoxLinkTypeActionPerformed
4860

4861    private void jButtonRemParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonRemParameterActionPerformed
4862
if (this.isInit()) return;
4863        
4864        if (jrf == null || getElementSelection().size()==0) return;
4865        
4866        Enumeration e = getElementSelection().elements();
4867        SubReportElement element = (SubReportElement)e.nextElement();
4868        
4869        jTableSubreportParameters.getSelectedRows();
4870        int[] rows= jTableSubreportParameters.getSelectedRows();
4871        for (int i=rows.length-1; i>=0; --i) {
4872            element.getSubreportParameters().removeElement( jTableSubreportParameters.getValueAt( rows[i], 0) );
4873            //this.jTableParameters.removeRowSelectionInterval( rows[i],rows[i]);
4874
}
4875        
4876        javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportParameters.getModel();
4877        dtm.setRowCount(0);
4878        
4879        java.util.Enumeration JavaDoc enum_parameters = element.getSubreportParameters().elements();
4880        while (enum_parameters.hasMoreElements()) {
4881            it.businesslogic.ireport.JRSubreportParameter parameter = (it.businesslogic.ireport.JRSubreportParameter)enum_parameters.nextElement();
4882            Vector row = new Vector();
4883            row.addElement(parameter);
4884            row.addElement(parameter.getExpression());
4885            dtm.addRow(row);
4886        }
4887    }//GEN-LAST:event_jButtonRemParameterActionPerformed
4888

4889    private void jButtonModParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonModParameterActionPerformed
4890
if (this.isInit()) return;
4891        
4892        if (jrf == null || getElementSelection().size()==0) return;
4893        
4894        Enumeration e = getElementSelection().elements();
4895        SubReportElement element = (SubReportElement)e.nextElement();
4896        
4897        JRSubreportParameter parameter = (JRSubreportParameter)jTableSubreportParameters.getValueAt( jTableSubreportParameters.getSelectedRow(), 0);
4898        
4899        JRSubreportParameterDialog jrpd = new JRSubreportParameterDialog(this, true);
4900        jrpd.setParameter( parameter );
4901        jrpd.setVisible(true);
4902        
4903        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4904            parameter.setName( jrpd.getParameter().getName() );
4905            parameter.setExpression( jrpd.getParameter().getExpression());
4906            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportParameters.getModel();
4907            dtm.setRowCount(0);
4908            
4909            java.util.Enumeration JavaDoc enum_parameters = element.getSubreportParameters().elements();
4910            while (enum_parameters.hasMoreElements()) {
4911                it.businesslogic.ireport.JRSubreportParameter parameter2 = (it.businesslogic.ireport.JRSubreportParameter)enum_parameters.nextElement();
4912                Vector row = new Vector();
4913                row.addElement(parameter2);
4914                row.addElement(parameter2.getExpression());
4915                dtm.addRow(row);
4916            }
4917        }
4918    }//GEN-LAST:event_jButtonModParameterActionPerformed
4919

4920    private void jButtonAddParameterActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jButtonAddParameterActionPerformed
4921

4922        if (this.isInit()) return;
4923        
4924        if (jrf == null || getElementSelection().size()==0) return;
4925        // Set the new value for all selected elements...
4926
Enumeration e = getElementSelection().elements();
4927        SubReportElement element = (SubReportElement)e.nextElement();
4928        
4929        JRSubreportParameterDialog jrpd = new JRSubreportParameterDialog(this, true);
4930        jrpd.setVisible(true);
4931        
4932        if (jrpd.getDialogResult() == javax.swing.JOptionPane.OK_OPTION) {
4933            it.businesslogic.ireport.JRSubreportParameter parameter = jrpd.getParameter();
4934            element.getSubreportParameters().addElement( parameter );
4935            javax.swing.table.DefaultTableModel JavaDoc dtm = (javax.swing.table.DefaultTableModel JavaDoc)jTableSubreportParameters.getModel();
4936            dtm.addRow(new Object JavaDoc[]{parameter, parameter.getExpression()});
4937        }
4938    }//GEN-LAST:event_jButtonAddParameterActionPerformed
4939

4940    private void jComboBoxSubreportExpressionClassActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxSubreportExpressionClassActionPerformed
4941
if (this.isInit()) return;
4942        
4943        // Set band to all....
4944
if (jrf == null || getElementSelection().size()==0 || jComboBoxSubreportExpressionClass.getSelectedItem() == null || (jComboBoxSubreportExpressionClass.getSelectedItem()+"").equals("")) return;
4945        // Set the new value for all selected elements...
4946
Enumeration e = getElementSelection().elements();
4947        while (e.hasMoreElements()) {
4948            SubReportElement element = (SubReportElement)e.nextElement();
4949            element.setSubreportExpressionClass(""+ jComboBoxSubreportExpressionClass.getSelectedItem());
4950        }
4951        
4952        this.jComboBoxSubreportExpressionClass.removeItem("");
4953    }//GEN-LAST:event_jComboBoxSubreportExpressionClassActionPerformed
4954

4955    private void jCheckBoxSubreportCacheActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxSubreportCacheActionPerformed
4956
if (this.isInit()) return;
4957        
4958        // Set band to all....
4959
if (jrf == null || getElementSelection().size()==0) return;
4960        // Set the new value for all selected elements...
4961
Enumeration e = getElementSelection().elements();
4962        while (e.hasMoreElements()) {
4963            SubReportElement element = (SubReportElement)e.nextElement();
4964            element.setIsUsingCache(jCheckBoxSubreportCache.isSelected());
4965        }
4966    }//GEN-LAST:event_jCheckBoxSubreportCacheActionPerformed
4967

4968    private void jComboBoxSubreportConnectionTypeActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxSubreportConnectionTypeActionPerformed
4969
if (this.isInit()) return;
4970        
4971        if (jrf == null || getElementSelection().size()==0) return;
4972        // Set the new value for all selected elements...
4973
Enumeration e = getElementSelection().elements();
4974        SubReportElement element = (SubReportElement)e.nextElement();
4975        
4976        if (jComboBoxSubreportConnectionType.getSelectedIndex() == 0) {
4977            element.setUseConnection(false);
4978            element.setConnectionExpression("");
4979            element.setDataSourceExpression("");
4980            jRTextExpressionAreaTextConnectionExpression.setText("");
4981            jRTextExpressionAreaTextConnectionExpression.setEnabled(false);
4982            jRTextExpressionAreaTextConnectionExpression.setBackground(Color.LIGHT_GRAY);
4983        } else if (jComboBoxSubreportConnectionType.getSelectedIndex() == 1) {
4984            element.setUseConnection(true);
4985            element.setDataSourceExpression("");
4986            element.setConnectionExpression("$P{REPORT_CONNECTION}");
4987            jRTextExpressionAreaTextConnectionExpression.setText("$P{REPORT_CONNECTION}");
4988            jRTextExpressionAreaTextConnectionExpression.setEnabled(true);
4989            jRTextExpressionAreaTextConnectionExpression.setBackground(Color.WHITE);
4990        } else if (jComboBoxSubreportConnectionType.getSelectedIndex() == 2) {
4991            element.setUseConnection(false);
4992            element.setDataSourceExpression("$P{MyDataource}");
4993            element.setConnectionExpression("");
4994            jRTextExpressionAreaTextConnectionExpression.setText("$P{MyDataource}");
4995            jRTextExpressionAreaTextConnectionExpression.setEnabled(true);
4996            jRTextExpressionAreaTextConnectionExpression.setBackground(Color.WHITE);
4997        }
4998        
4999    }//GEN-LAST:event_jComboBoxSubreportConnectionTypeActionPerformed
5000

5001    private void jComboBoxPatternInputMethodTextChanged(java.awt.event.InputMethodEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxPatternInputMethodTextChanged
5002

5003        
5004        
5005    }//GEN-LAST:event_jComboBoxPatternInputMethodTextChanged
5006

5007    private void jComboBoxPatternActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jComboBoxPatternActionPerformed
5008
if (this.isInit()) return;
5009        
5010        // Set band to all....
5011
if (jrf == null ||
5012                ((getElementSelection().size()==0 || jComboBoxPdfEncoding.getSelectedItem() == null || (jComboBoxPdfEncoding.getSelectedItem()+"").equals("") ) && ((javax.swing.JTextField JavaDoc) jComboBoxPattern.getEditor().getEditorComponent()).getText().trim().length() == 0)) return;
5013        // Set the new value for all selected elements...
5014
Enumeration e = getElementSelection().elements();
5015        
5016        Object JavaDoc pattern = jComboBoxPattern.getSelectedItem();
5017        if (pattern == null || pattern.equals("")) {
5018            pattern = ((javax.swing.JTextField JavaDoc) jComboBoxPattern.getEditor().getEditorComponent()).getText().trim();
5019        } else if (pattern instanceof PdfEncoding) {
5020            pattern = ""+ ((PdfEncoding)pattern).getEncoding();
5021            jComboBoxPattern.setSelectedItem(pattern);
5022        } else
5023            pattern = ""+ pattern+"";
5024        
5025        while (e.hasMoreElements()) {
5026            TextFieldReportElement element = (TextFieldReportElement)e.nextElement();
5027            element.setPattern(""+ pattern+"");
5028        }
5029        fireReportElementsChangedEvent("pattern", ""+ pattern);
5030    }//GEN-LAST:event_jComboBoxPatternActionPerformed
5031

5032    private void jCheckBoxBlankWhenNullActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxBlankWhenNullActionPerformed
5033
if (this.isInit()) return;
5034        
5035        // Set band to all....
5036
if (jrf == null || getElementSelection().size()==0) return;
5037        // Set the new value for all selected elements...
5038
Enumeration e = getElementSelection().elements();
5039        while (e.hasMoreElements()) {
5040            TextFieldReportElement element = (TextFieldReportElement)e.nextElement();
5041            element.setBlankWhenNull(jCheckBoxBlankWhenNull.isSelected());
5042        }
5043        fireReportElementsChangedEvent("blankWhenNull", ""+ jCheckBoxStretchWithOverflow.isSelected());
5044    }//GEN-LAST:event_jCheckBoxBlankWhenNullActionPerformed
5045

5046    private void jCheckBoxStretchWithOverflowActionPerformed(java.awt.event.ActionEvent JavaDoc evt) {//GEN-FIRST:event_jCheckBoxStretchWithOverflowActionPerformed
5047
if (this.isInit()) return;
5048        
5049