KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > form > layoutdesign > ALT_Bug69497Test


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.form.layoutdesign;
21
22 import java.awt.Dimension JavaDoc;
23 import java.awt.Point JavaDoc;
24 import java.awt.Rectangle JavaDoc;
25 import java.io.File JavaDoc;
26 import java.io.IOException JavaDoc;
27 import java.util.*;
28 import org.openide.filesystems.FileUtil;
29
30 // Testing correct parallel merging in vertical dimension. The layout is
31
// "screwed" by jLabel1 which is in parallel to everything. Tests thoroughly
32
// mergeParallelInclusions method, all indices must match, including the case
33
// when superfluous gap is eliminated.
34
public class ALT_Bug69497Test extends LayoutTestCase {
35         
36     public ALT_Bug69497Test(String JavaDoc name) {
37         super(name);
38         try {
39         className = this.getClass().getName();
40         className = className.substring(className.lastIndexOf('.') + 1, className.length());
41             startingFormFile = FileUtil.toFileObject(new File JavaDoc(url.getFile() + goldenFilesPath + className + "-StartingForm.form").getCanonicalFile());
42         } catch (IOException JavaDoc ioe) {
43             fail(ioe.toString());
44         }
45     }
46
47     // Call Date (jLabel7) originally on baseline with couponField textfield is
48
// moved left and up to top-align with couponField.
49
// In vertical dimension, the main sequence needs to be divided correctly,
50
// merged with incorrectly placed jLabel1, and a subgroup created for
51
// jLabel7 in parallel with couponField and callDateField. Rest of the
52
// sequence needs to follow unchanged.
53
public void doChanges0() {
54         ld.externalSizeChangeHappened();
55         // > UPDATE CURRENT STATE
56
contInterior.put("myJPanel", new Rectangle JavaDoc(0, 0, 203, 183));
57         compBounds.put("jLabel7", new Rectangle JavaDoc(27, 104, 62, 15));
58         baselinePosition.put("jLabel7-62-15", new Integer JavaDoc(11));
59         compPrefSize.put("jLabel7", new Dimension JavaDoc(43, 14));
60         compBounds.put("jLabel1", new Rectangle JavaDoc(10, 11, 93, 14));
61         baselinePosition.put("jLabel1-93-14", new Integer JavaDoc(11));
62         compPrefSize.put("jLabel1", new Dimension JavaDoc(70, 14));
63         compBounds.put("jLabel3", new Rectangle JavaDoc(10, 35, 93, 14));
64         baselinePosition.put("jLabel3-93-14", new Integer JavaDoc(11));
65         compPrefSize.put("jLabel3", new Dimension JavaDoc(70, 14));
66         compBounds.put("jLabel5", new Rectangle JavaDoc(10, 55, 90, 14));
67         baselinePosition.put("jLabel5-90-14", new Integer JavaDoc(11));
68         compPrefSize.put("jLabel5", new Dimension JavaDoc(66, 14));
69         compBounds.put("jLabel2", new Rectangle JavaDoc(10, 78, 54, 14));
70         baselinePosition.put("jLabel2-54-14", new Integer JavaDoc(11));
71         compPrefSize.put("jLabel2", new Dimension JavaDoc(37, 14));
72         compBounds.put("jLabel6", new Rectangle JavaDoc(10, 155, 62, 14));
73         baselinePosition.put("jLabel6-62-14", new Integer JavaDoc(11));
74         compPrefSize.put("jLabel6", new Dimension JavaDoc(43, 14));
75         compBounds.put("callPriceField", new Rectangle JavaDoc(107, 152, 86, 20));
76         baselinePosition.put("callPriceField-86-20", new Integer JavaDoc(14));
77         compPrefSize.put("callPriceField", new Dimension JavaDoc(86, 20));
78         compBounds.put("callDateField", new Rectangle JavaDoc(107, 130, 86, 20));
79         baselinePosition.put("callDateField-86-20", new Integer JavaDoc(14));
80         compPrefSize.put("callDateField", new Dimension JavaDoc(86, 20));
81         compBounds.put("maturityDateField", new Rectangle JavaDoc(107, 75, 86, 20));
82         baselinePosition.put("maturityDateField-86-20", new Integer JavaDoc(14));
83         compPrefSize.put("maturityDateField", new Dimension JavaDoc(86, 20));
84         compBounds.put("couponField", new Rectangle JavaDoc(107, 101, 86, 20));
85         baselinePosition.put("couponField-86-20", new Integer JavaDoc(14));
86         compPrefSize.put("couponField", new Dimension JavaDoc(86, 20));
87         compBounds.put("purchasePriceField", new Rectangle JavaDoc(107, 45, 86, 20));
88         baselinePosition.put("purchasePriceField-86-20", new Integer JavaDoc(14));
89         compPrefSize.put("purchasePriceField", new Dimension JavaDoc(86, 20));
90         compBounds.put("purchaseDateField", new Rectangle JavaDoc(107, 19, 86, 20));
91         baselinePosition.put("purchaseDateField-86-20", new Integer JavaDoc(14));
92         compPrefSize.put("purchaseDateField", new Dimension JavaDoc(86, 20));
93         prefPaddingInParent.put("myJPanel-callPriceField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
94
prefPaddingInParent.put("myJPanel-callDateField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
95
prefPaddingInParent.put("myJPanel-maturityDateField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
96
prefPaddingInParent.put("myJPanel-couponField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
97
prefPaddingInParent.put("myJPanel-purchasePriceField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
98
prefPaddingInParent.put("myJPanel-purchaseDateField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
99
prefPaddingInParent.put("myJPanel-jLabel1-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
100
prefPaddingInParent.put("myJPanel-callPriceField-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
101
prefPaddingInParent.put("myJPanel-jLabel6-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
102
contInterior.put("myJPanel", new Rectangle JavaDoc(0, 0, 203, 183));
103         compBounds.put("jLabel7", new Rectangle JavaDoc(27, 104, 62, 15));
104         baselinePosition.put("jLabel7-62-15", new Integer JavaDoc(11));
105         compBounds.put("jLabel1", new Rectangle JavaDoc(10, 11, 93, 14));
106         baselinePosition.put("jLabel1-93-14", new Integer JavaDoc(11));
107         compBounds.put("jLabel3", new Rectangle JavaDoc(10, 35, 93, 14));
108         baselinePosition.put("jLabel3-93-14", new Integer JavaDoc(11));
109         compBounds.put("jLabel5", new Rectangle JavaDoc(10, 55, 90, 14));
110         baselinePosition.put("jLabel5-90-14", new Integer JavaDoc(11));
111         compBounds.put("jLabel2", new Rectangle JavaDoc(10, 78, 54, 14));
112         baselinePosition.put("jLabel2-54-14", new Integer JavaDoc(11));
113         compBounds.put("jLabel6", new Rectangle JavaDoc(10, 155, 62, 14));
114         baselinePosition.put("jLabel6-62-14", new Integer JavaDoc(11));
115         compBounds.put("callPriceField", new Rectangle JavaDoc(107, 152, 86, 20));
116         baselinePosition.put("callPriceField-86-20", new Integer JavaDoc(14));
117         compBounds.put("callDateField", new Rectangle JavaDoc(107, 130, 86, 20));
118         baselinePosition.put("callDateField-86-20", new Integer JavaDoc(14));
119         compBounds.put("maturityDateField", new Rectangle JavaDoc(107, 75, 86, 20));
120         baselinePosition.put("maturityDateField-86-20", new Integer JavaDoc(14));
121         compBounds.put("couponField", new Rectangle JavaDoc(107, 101, 86, 20));
122         baselinePosition.put("couponField-86-20", new Integer JavaDoc(14));
123         compBounds.put("purchasePriceField", new Rectangle JavaDoc(107, 45, 86, 20));
124         baselinePosition.put("purchasePriceField-86-20", new Integer JavaDoc(14));
125         compBounds.put("purchaseDateField", new Rectangle JavaDoc(107, 19, 86, 20));
126         baselinePosition.put("purchaseDateField-86-20", new Integer JavaDoc(14));
127         ld.updateCurrentState();
128         // < UPDATE CURRENT STATE
129
// > START MOVING
130
baselinePosition.put("jLabel7-62-15", new Integer JavaDoc(11));
131         {
132             String JavaDoc[] compIds = new String JavaDoc[] {
133                 "jLabel7"
134                 };
135             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
136                 new Rectangle JavaDoc(27, 104, 62, 15)
137                 };
138             Point JavaDoc hotspot = new Point JavaDoc(50,114);
139             ld.startMoving(compIds, bounds, hotspot);
140         }
141         // < START MOVING
142
prefPaddingInParent.put("myJPanel-jLabel7-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
143
prefPaddingInParent.put("myJPanel-jLabel7-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
144
prefPadding.put("jLabel3-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
145
prefPadding.put("jLabel5-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
146
prefPadding.put("maturityDateField-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
147
prefPadding.put("jLabel2-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
148
prefPadding.put("callPriceField-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
149
prefPadding.put("jLabel6-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
150
prefPadding.put("jLabel7-callPriceField-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
151
prefPadding.put("jLabel7-jLabel6-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
152
prefPadding.put("jLabel1-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
153
prefPadding.put("jLabel7-jLabel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
154
prefPaddingInParent.put("myJPanel-jLabel7-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
155
prefPaddingInParent.put("myJPanel-jLabel7-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
156
prefPadding.put("jLabel7-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
157
prefPadding.put("jLabel2-jLabel7-0-0-2", new Integer JavaDoc(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
158
// > MOVE
159
{
160             Point JavaDoc p = new Point JavaDoc(35,113);
161             String JavaDoc containerId= "myJPanel";
162             boolean autoPositioning = true;
163             boolean lockDimension = false;
164             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
165                 new Rectangle JavaDoc(10, 104, 62, 15)
166                 };
167             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
168         }
169         // < MOVE
170
prefPaddingInParent.put("myJPanel-jLabel7-1-0", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
171
prefPaddingInParent.put("myJPanel-jLabel7-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
172
prefPadding.put("jLabel3-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
173
prefPadding.put("jLabel5-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
174
prefPadding.put("maturityDateField-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
175
prefPadding.put("jLabel2-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
176
prefPadding.put("callPriceField-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
177
prefPadding.put("jLabel6-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
178
prefPadding.put("jLabel7-callPriceField-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
179
prefPadding.put("jLabel7-jLabel6-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
180
prefPadding.put("jLabel1-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
181
prefPadding.put("jLabel7-jLabel1-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
182
prefPaddingInParent.put("myJPanel-jLabel7-0-0", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
183
prefPaddingInParent.put("myJPanel-jLabel7-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
184
prefPadding.put("jLabel7-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
185
prefPadding.put("jLabel2-jLabel7-0-0-2", new Integer JavaDoc(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
186
// > MOVE
187
{
188             Point JavaDoc p = new Point JavaDoc(35,112);
189             String JavaDoc containerId= "myJPanel";
190             boolean autoPositioning = true;
191             boolean lockDimension = false;
192             Rectangle JavaDoc[] bounds = new Rectangle JavaDoc[] {
193                 new Rectangle JavaDoc(10, 101, 62, 15)
194                 };
195             ld.move(p, containerId, autoPositioning, lockDimension, bounds);
196         }
197         // < MOVE
198
// > END MOVING
199
prefPadding.put("jLabel1-callPriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
200
prefPadding.put("jLabel1-callDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
201
prefPadding.put("jLabel1-maturityDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
202
prefPadding.put("jLabel1-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
203
prefPadding.put("jLabel1-purchasePriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
204
prefPadding.put("jLabel1-purchaseDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
205
prefPadding.put("jLabel3-callPriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
206
prefPadding.put("jLabel3-callDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
207
prefPadding.put("jLabel3-maturityDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
208
prefPadding.put("jLabel3-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
209
prefPadding.put("jLabel3-purchasePriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
210
prefPadding.put("jLabel3-purchaseDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
211
prefPadding.put("jLabel5-callPriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
212
prefPadding.put("jLabel5-callDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
213
prefPadding.put("jLabel5-maturityDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
214
prefPadding.put("jLabel5-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
215
prefPadding.put("jLabel5-purchasePriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
216
prefPadding.put("jLabel5-purchaseDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
217
prefPadding.put("jLabel2-callPriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
218
prefPadding.put("jLabel2-callDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
219
prefPadding.put("jLabel2-maturityDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
220
prefPadding.put("jLabel2-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
221
prefPadding.put("jLabel2-purchasePriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
222
prefPadding.put("jLabel2-purchaseDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
223
prefPadding.put("jLabel6-callPriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
224
prefPadding.put("jLabel6-callDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
225
prefPadding.put("jLabel6-maturityDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
226
prefPadding.put("jLabel6-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
227
prefPadding.put("jLabel6-purchasePriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
228
prefPadding.put("jLabel6-purchaseDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
229
prefPadding.put("jLabel7-callPriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
230
prefPadding.put("jLabel7-callDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
231
prefPadding.put("jLabel7-maturityDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
232
prefPadding.put("jLabel7-couponField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
233
prefPadding.put("jLabel7-purchasePriceField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
234
prefPadding.put("jLabel7-purchaseDateField-0-0-0", new Integer JavaDoc(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
235
prefPadding.put("jLabel1-jLabel7-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
236
prefPadding.put("jLabel7-callPriceField-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
237
prefPadding.put("jLabel7-jLabel6-1-0-0", new Integer JavaDoc(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType
238
ld.endMoving(true);
239         // < END MOVING
240
ld.externalSizeChangeHappened();
241         // > UPDATE CURRENT STATE
242
contInterior.put("myJPanel", new Rectangle JavaDoc(0, 0, 203, 183));
243         compBounds.put("jLabel1", new Rectangle JavaDoc(10, 11, 93, 14));
244         baselinePosition.put("jLabel1-93-14", new Integer JavaDoc(11));
245         compPrefSize.put("jLabel1", new Dimension JavaDoc(70, 14));
246         compBounds.put("jLabel3", new Rectangle JavaDoc(10, 35, 93, 14));
247         baselinePosition.put("jLabel3-93-14", new Integer JavaDoc(11));
248         compPrefSize.put("jLabel3", new Dimension JavaDoc(70, 14));
249         compBounds.put("jLabel5", new Rectangle JavaDoc(10, 55, 90, 14));
250         baselinePosition.put("jLabel5-90-14", new Integer JavaDoc(11));
251         compPrefSize.put("jLabel5", new Dimension JavaDoc(66, 14));
252         compBounds.put("jLabel2", new Rectangle JavaDoc(10, 78, 54, 14));
253         baselinePosition.put("jLabel2-54-14", new Integer JavaDoc(11));
254         compPrefSize.put("jLabel2", new Dimension JavaDoc(37, 14));
255         compBounds.put("jLabel6", new Rectangle JavaDoc(10, 155, 62, 14));
256         baselinePosition.put("jLabel6-62-14", new Integer JavaDoc(11));
257         compPrefSize.put("jLabel6", new Dimension JavaDoc(43, 14));
258         compBounds.put("callPriceField", new Rectangle JavaDoc(107, 152, 86, 20));
259         baselinePosition.put("callPriceField-86-20", new Integer JavaDoc(14));
260         compPrefSize.put("callPriceField", new Dimension JavaDoc(86, 20));
261         compBounds.put("callDateField", new Rectangle JavaDoc(107, 130, 86, 20));
262         baselinePosition.put("callDateField-86-20", new Integer JavaDoc(14));
263         compPrefSize.put("callDateField", new Dimension JavaDoc(86, 20));
264         compBounds.put("maturityDateField", new Rectangle JavaDoc(107, 75, 86, 20));
265         baselinePosition.put("maturityDateField-86-20", new Integer JavaDoc(14));
266         compPrefSize.put("maturityDateField", new Dimension JavaDoc(86, 20));
267         compBounds.put("couponField", new Rectangle JavaDoc(107, 101, 86, 20));
268         baselinePosition.put("couponField-86-20", new Integer JavaDoc(14));
269         compPrefSize.put("couponField", new Dimension JavaDoc(86, 20));
270         compBounds.put("purchasePriceField", new Rectangle JavaDoc(107, 45, 86, 20));
271         baselinePosition.put("purchasePriceField-86-20", new Integer JavaDoc(14));
272         compPrefSize.put("purchasePriceField", new Dimension JavaDoc(86, 20));
273         compBounds.put("purchaseDateField", new Rectangle JavaDoc(107, 19, 86, 20));
274         baselinePosition.put("purchaseDateField-86-20", new Integer JavaDoc(14));
275         compPrefSize.put("purchaseDateField", new Dimension JavaDoc(86, 20));
276         compBounds.put("jLabel7", new Rectangle JavaDoc(10, 101, 62, 15));
277         baselinePosition.put("jLabel7-62-15", new Integer JavaDoc(11));
278         compPrefSize.put("jLabel7", new Dimension JavaDoc(43, 14));
279         prefPaddingInParent.put("myJPanel-callPriceField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
280
prefPaddingInParent.put("myJPanel-callDateField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
281
prefPaddingInParent.put("myJPanel-maturityDateField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
282
prefPaddingInParent.put("myJPanel-couponField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
283
prefPaddingInParent.put("myJPanel-purchasePriceField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
284
prefPaddingInParent.put("myJPanel-purchaseDateField-0-1", new Integer JavaDoc(10)); // parentId-compId-dimension-compAlignment
285
prefPaddingInParent.put("myJPanel-callPriceField-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
286
prefPaddingInParent.put("myJPanel-jLabel6-1-1", new Integer JavaDoc(11)); // parentId-compId-dimension-compAlignment
287
contInterior.put("myJPanel", new Rectangle JavaDoc(0, 0, 203, 183));
288         compBounds.put("jLabel1", new Rectangle JavaDoc(10, 11, 93, 14));
289         baselinePosition.put("jLabel1-93-14", new Integer JavaDoc(11));
290         compBounds.put("jLabel3", new Rectangle JavaDoc(10, 35, 93, 14));
291         baselinePosition.put("jLabel3-93-14", new Integer JavaDoc(11));
292         compBounds.put("jLabel5", new Rectangle JavaDoc(10, 55, 90, 14));
293         baselinePosition.put("jLabel5-90-14", new Integer JavaDoc(11));
294         compBounds.put("jLabel2", new Rectangle JavaDoc(10, 78, 54, 14));
295         baselinePosition.put("jLabel2-54-14", new Integer JavaDoc(11));
296         compBounds.put("jLabel6", new Rectangle JavaDoc(10, 155, 62, 14));
297         baselinePosition.put("jLabel6-62-14", new Integer JavaDoc(11));
298         compBounds.put("callPriceField", new Rectangle JavaDoc(107, 152, 86, 20));
299         baselinePosition.put("callPriceField-86-20", new Integer JavaDoc(14));
300         compBounds.put("callDateField", new Rectangle JavaDoc(107, 130, 86, 20));
301         baselinePosition.put("callDateField-86-20", new Integer JavaDoc(14));
302         compBounds.put("maturityDateField", new Rectangle JavaDoc(107, 75, 86, 20));
303         baselinePosition.put("maturityDateField-86-20", new Integer JavaDoc(14));
304         compBounds.put("couponField", new Rectangle JavaDoc(107, 101, 86, 20));
305         baselinePosition.put("couponField-86-20", new Integer JavaDoc(14));
306         compBounds.put("purchasePriceField", new Rectangle JavaDoc(107, 45, 86, 20));
307         baselinePosition.put("purchasePriceField-86-20", new Integer JavaDoc(14));
308         compBounds.put("purchaseDateField", new Rectangle JavaDoc(107, 19, 86, 20));
309         baselinePosition.put("purchaseDateField-86-20", new Integer JavaDoc(14));
310         compBounds.put("jLabel7", new Rectangle JavaDoc(10, 101, 62, 15));
311         baselinePosition.put("jLabel7-62-15", new Integer JavaDoc(11));
312         ld.updateCurrentState();
313         // < UPDATE CURRENT STATE
314
}
315     
316 }
317
Popular Tags