1 19 20 package org.netbeans.modules.form.layoutdesign; 21 22 import java.awt.Dimension ; 23 import java.awt.Point ; 24 import java.awt.Rectangle ; 25 import java.io.File ; 26 import java.io.IOException ; 27 import java.util.ArrayList ; 28 import java.util.Collection ; 29 import org.openide.filesystems.FileUtil; 30 31 public class ALT_Inserting01Test extends LayoutTestCase { 32 33 public ALT_Inserting01Test(String name) { 34 super(name); 35 try { 36 className = this.getClass().getName(); 37 className = className.substring(className.lastIndexOf('.') + 1, className.length()); 38 startingFormFile = FileUtil.toFileObject(new File (url.getFile() + goldenFilesPath + className + "-StartingForm.form").getCanonicalFile()); 39 } catch (IOException ioe) { 40 fail(ioe.toString()); 41 } 42 } 43 44 public void doChanges0() { 48 ld.externalSizeChangeHappened(); 49 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 51 ld.updateCurrentState(); 52 lc = new LayoutComponent("jLabel1", false); 54 baselinePosition.put("jLabel1-34-14", new Integer (11)); 56 { 57 LayoutComponent[] comps = new LayoutComponent[] { lc }; 58 Rectangle [] bounds = new Rectangle [] { 59 new Rectangle (0, 0, 34, 14) 60 }; 61 String defaultContId = null; 62 Point hotspot = new Point (13,7); 63 ld.startAdding(comps, bounds, hotspot, defaultContId); 64 } 65 prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel1-1-1", new Integer (11)); prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-0-1", new Integer (10)); { 72 Point p = new Point (22,20); 73 String containerId= "Form"; 74 boolean autoPositioning = true; 75 boolean lockDimension = false; 76 Rectangle [] bounds = new Rectangle [] { 77 new Rectangle (10, 11, 34, 14) 78 }; 79 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 80 } 81 prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel1-1-1", new Integer (11)); prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-0-1", new Integer (10)); { 88 Point p = new Point (21,20); 89 String containerId= "Form"; 90 boolean autoPositioning = true; 91 boolean lockDimension = false; 92 Rectangle [] bounds = new Rectangle [] { 93 new Rectangle (10, 11, 34, 14) 94 }; 95 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 96 } 97 compPrefSize.put("jLabel1", new Dimension (34, 14)); 100 compPrefSize.put("jLabel1", new Dimension (34, 14)); 101 prefPaddingInParent.put("Form-jLabel1-0-1", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-1", new Integer (11)); ld.endMoving(true); 104 ld.externalSizeChangeHappened(); 106 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 108 compBounds.put("jLabel1", new Rectangle (10, 11, 34, 14)); 109 baselinePosition.put("jLabel1-34-14", new Integer (11)); 110 compPrefSize.put("jLabel1", new Dimension (34, 14)); 111 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); ld.updateCurrentState(); 114 lc = new LayoutComponent("jLabel2", false); 116 baselinePosition.put("jLabel2-34-14", new Integer (11)); 118 { 119 LayoutComponent[] comps = new LayoutComponent[] { lc }; 120 Rectangle [] bounds = new Rectangle [] { 121 new Rectangle (10, 11, 34, 14) 122 }; 123 String defaultContId= "Form"; 124 Point hotspot = new Point (23,18); 125 ld.startAdding(comps, bounds, hotspot, defaultContId); 126 } 127 prefPaddingInParent.put("Form-jLabel2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel2-1-1", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel1-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-1", new Integer (10)); prefPadding.put("jLabel1-jLabel2-0-0-2", new Integer (10)); { 137 Point p = new Point (22,32); 138 String containerId= "Form"; 139 boolean autoPositioning = true; 140 boolean lockDimension = false; 141 Rectangle [] bounds = new Rectangle [] { 142 new Rectangle (10, 31, 34, 14) 143 }; 144 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 145 } 146 prefPaddingInParent.put("Form-jLabel2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel2-1-1", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel1-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-1", new Integer (10)); prefPadding.put("jLabel1-jLabel2-0-0-2", new Integer (10)); { 156 Point p = new Point (22,33); 157 String containerId= "Form"; 158 boolean autoPositioning = true; 159 boolean lockDimension = false; 160 Rectangle [] bounds = new Rectangle [] { 161 new Rectangle (10, 31, 34, 14) 162 }; 163 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 164 } 165 compPrefSize.put("jLabel2", new Dimension (34, 14)); 168 compPrefSize.put("jLabel2", new Dimension (34, 14)); 169 prefPaddingInParent.put("Form-jLabel2-0-1", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-1-1", new Integer (11)); ld.endMoving(true); 172 ld.externalSizeChangeHappened(); 174 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 176 compBounds.put("jLabel1", new Rectangle (10, 11, 34, 14)); 177 baselinePosition.put("jLabel1-34-14", new Integer (11)); 178 compPrefSize.put("jLabel1", new Dimension (34, 14)); 179 compBounds.put("jLabel2", new Rectangle (10, 31, 34, 14)); 180 baselinePosition.put("jLabel2-34-14", new Integer (11)); 181 compPrefSize.put("jLabel2", new Dimension (34, 14)); 182 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); ld.updateCurrentState(); 187 lc = new LayoutComponent("jLabel3", false); 189 baselinePosition.put("jLabel3-34-14", new Integer (11)); 191 { 192 LayoutComponent[] comps = new LayoutComponent[] { lc }; 193 Rectangle [] bounds = new Rectangle [] { 194 new Rectangle (10, 31, 34, 14) 195 }; 196 String defaultContId= "Form"; 197 Point hotspot = new Point (23,38); 198 ld.startAdding(comps, bounds, hotspot, defaultContId); 199 } 200 prefPaddingInParent.put("Form-jLabel3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPadding.put("jLabel1-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jLabel2-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-1", new Integer (10)); prefPadding.put("jLabel2-jLabel3-0-0-2", new Integer (10)); { 212 Point p = new Point (23,52); 213 String containerId= "Form"; 214 boolean autoPositioning = true; 215 boolean lockDimension = false; 216 Rectangle [] bounds = new Rectangle [] { 217 new Rectangle (10, 51, 34, 14) 218 }; 219 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 220 } 221 prefPaddingInParent.put("Form-jLabel3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPadding.put("jLabel1-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jLabel2-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-1", new Integer (10)); prefPadding.put("jLabel2-jLabel3-0-0-2", new Integer (10)); { 233 Point p = new Point (23,53); 234 String containerId= "Form"; 235 boolean autoPositioning = true; 236 boolean lockDimension = false; 237 Rectangle [] bounds = new Rectangle [] { 238 new Rectangle (10, 51, 34, 14) 239 }; 240 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 241 } 242 compPrefSize.put("jLabel3", new Dimension (34, 14)); 245 compPrefSize.put("jLabel3", new Dimension (34, 14)); 246 prefPaddingInParent.put("Form-jLabel3-0-1", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); ld.endMoving(true); 249 ld.externalSizeChangeHappened(); 251 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 253 compBounds.put("jLabel1", new Rectangle (10, 11, 34, 14)); 254 baselinePosition.put("jLabel1-34-14", new Integer (11)); 255 compPrefSize.put("jLabel1", new Dimension (34, 14)); 256 compBounds.put("jLabel2", new Rectangle (10, 31, 34, 14)); 257 baselinePosition.put("jLabel2-34-14", new Integer (11)); 258 compPrefSize.put("jLabel2", new Dimension (34, 14)); 259 compBounds.put("jLabel3", new Rectangle (10, 51, 34, 14)); 260 baselinePosition.put("jLabel3-34-14", new Integer (11)); 261 compPrefSize.put("jLabel3", new Dimension (34, 14)); 262 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); ld.updateCurrentState(); 269 ld.externalSizeChangeHappened(); 271 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 273 compBounds.put("jLabel1", new Rectangle (10, 11, 102, 14)); 274 baselinePosition.put("jLabel1-102-14", new Integer (11)); 275 compPrefSize.put("jLabel1", new Dimension (102, 14)); 276 compBounds.put("jLabel2", new Rectangle (10, 31, 34, 14)); 277 baselinePosition.put("jLabel2-34-14", new Integer (11)); 278 compPrefSize.put("jLabel2", new Dimension (34, 14)); 279 compBounds.put("jLabel3", new Rectangle (10, 51, 34, 14)); 280 baselinePosition.put("jLabel3-34-14", new Integer (11)); 281 compPrefSize.put("jLabel3", new Dimension (34, 14)); 282 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-0-1", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-1", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-1", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); ld.updateCurrentState(); 292 ld.externalSizeChangeHappened(); 294 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 296 compBounds.put("jLabel1", new Rectangle (10, 11, 102, 14)); 297 baselinePosition.put("jLabel1-102-14", new Integer (11)); 298 compPrefSize.put("jLabel1", new Dimension (102, 14)); 299 compBounds.put("jLabel2", new Rectangle (10, 31, 68, 14)); 300 baselinePosition.put("jLabel2-68-14", new Integer (11)); 301 compPrefSize.put("jLabel2", new Dimension (68, 14)); 302 compBounds.put("jLabel3", new Rectangle (10, 51, 34, 14)); 303 baselinePosition.put("jLabel3-34-14", new Integer (11)); 304 compPrefSize.put("jLabel3", new Dimension (34, 14)); 305 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); ld.updateCurrentState(); 312 { 315 Collection componentIds = new ArrayList (); 316 componentIds.add("jLabel1"); 317 componentIds.add("jLabel2"); 318 componentIds.add("jLabel3"); 319 boolean closed = true; 320 int dimension = 0; 321 int alignment = 1; 322 ld.align(componentIds, closed, dimension, alignment); 323 } 324 ld.externalSizeChangeHappened(); 326 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 328 compBounds.put("jLabel1", new Rectangle (10, 11, 102, 14)); 329 baselinePosition.put("jLabel1-102-14", new Integer (11)); 330 compPrefSize.put("jLabel1", new Dimension (102, 14)); 331 compBounds.put("jLabel2", new Rectangle (44, 31, 68, 14)); 332 baselinePosition.put("jLabel2-68-14", new Integer (11)); 333 compPrefSize.put("jLabel2", new Dimension (68, 14)); 334 compBounds.put("jLabel3", new Rectangle (78, 51, 34, 14)); 335 baselinePosition.put("jLabel3-34-14", new Integer (11)); 336 compPrefSize.put("jLabel3", new Dimension (34, 14)); 337 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); ld.updateCurrentState(); 344 lc = new LayoutComponent("jTextField1", false); 346 baselinePosition.put("jTextField1-59-20", new Integer (14)); 348 { 349 LayoutComponent[] comps = new LayoutComponent[] { lc }; 350 Rectangle [] bounds = new Rectangle [] { 351 new Rectangle (0, 0, 59, 20) 352 }; 353 String defaultContId = null; 354 Point hotspot = new Point (25,10); 355 ld.startAdding(comps, bounds, hotspot, defaultContId); 356 } 357 prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jLabel3-0-0-0", new Integer (4)); { 368 Point p = new Point (141,20); 369 String containerId= "Form"; 370 boolean autoPositioning = true; 371 boolean lockDimension = false; 372 Rectangle [] bounds = new Rectangle [] { 373 new Rectangle (116, 8, 59, 20) 374 }; 375 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 376 } 377 prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jLabel3-0-0-0", new Integer (4)); { 388 Point p = new Point (141,19); 389 String containerId= "Form"; 390 boolean autoPositioning = true; 391 boolean lockDimension = false; 392 Rectangle [] bounds = new Rectangle [] { 393 new Rectangle (116, 8, 59, 20) 394 }; 395 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 396 } 397 compPrefSize.put("jTextField1", new Dimension (59, 20)); 400 compPrefSize.put("jTextField1", new Dimension (59, 20)); 401 prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); ld.endMoving(true); 403 ld.externalSizeChangeHappened(); 405 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 407 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 408 baselinePosition.put("jLabel1-102-14", new Integer (11)); 409 compPrefSize.put("jLabel1", new Dimension (102, 14)); 410 compBounds.put("jLabel2", new Rectangle (44, 37, 68, 14)); 411 baselinePosition.put("jLabel2-68-14", new Integer (11)); 412 compPrefSize.put("jLabel2", new Dimension (68, 14)); 413 compBounds.put("jLabel3", new Rectangle (78, 57, 34, 14)); 414 baselinePosition.put("jLabel3-34-14", new Integer (11)); 415 compPrefSize.put("jLabel3", new Dimension (34, 14)); 416 compBounds.put("jTextField1", new Rectangle (116, 11, 59, 20)); 417 baselinePosition.put("jTextField1-59-20", new Integer (14)); 418 compPrefSize.put("jTextField1", new Dimension (59, 20)); 419 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); ld.updateCurrentState(); 432 lc = new LayoutComponent("jTextField2", false); 434 baselinePosition.put("jTextField2-59-20", new Integer (14)); 436 { 437 LayoutComponent[] comps = new LayoutComponent[] { lc }; 438 Rectangle [] bounds = new Rectangle [] { 439 new Rectangle (116, 8, 59, 20) 440 }; 441 String defaultContId= "Form"; 442 Point hotspot = new Point (141,18); 443 ld.startAdding(comps, bounds, hotspot, defaultContId); 444 } 445 prefPaddingInParent.put("Form-jTextField2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField2-1-1", new Integer (11)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField1-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jTextField2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jTextField2-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jTextField2-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jTextField2-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField2-0-0-2", new Integer (10)); prefPadding.put("jTextField1-jTextField2-0-0-2", new Integer (10)); { 462 Point p = new Point (140,41); 463 String containerId= "Form"; 464 boolean autoPositioning = true; 465 boolean lockDimension = false; 466 Rectangle [] bounds = new Rectangle [] { 467 new Rectangle (116, 34, 59, 20) 468 }; 469 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 470 } 471 prefPaddingInParent.put("Form-jTextField2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField2-1-1", new Integer (11)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField1-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jTextField2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jTextField2-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jTextField2-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jTextField2-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField2-0-0-2", new Integer (10)); prefPadding.put("jTextField1-jTextField2-0-0-2", new Integer (10)); { 488 Point p = new Point (140,42); 489 String containerId= "Form"; 490 boolean autoPositioning = true; 491 boolean lockDimension = false; 492 Rectangle [] bounds = new Rectangle [] { 493 new Rectangle (116, 34, 59, 20) 494 }; 495 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 496 } 497 compPrefSize.put("jTextField2", new Dimension (59, 20)); 500 compPrefSize.put("jTextField2", new Dimension (59, 20)); 501 prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); ld.endMoving(true); 503 ld.externalSizeChangeHappened(); 505 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 507 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 508 baselinePosition.put("jLabel1-102-14", new Integer (11)); 509 compPrefSize.put("jLabel1", new Dimension (102, 14)); 510 compBounds.put("jLabel2", new Rectangle (44, 40, 68, 14)); 511 baselinePosition.put("jLabel2-68-14", new Integer (11)); 512 compPrefSize.put("jLabel2", new Dimension (68, 14)); 513 compBounds.put("jLabel3", new Rectangle (78, 63, 34, 14)); 514 baselinePosition.put("jLabel3-34-14", new Integer (11)); 515 compPrefSize.put("jLabel3", new Dimension (34, 14)); 516 compBounds.put("jTextField1", new Rectangle (116, 11, 59, 20)); 517 baselinePosition.put("jTextField1-59-20", new Integer (14)); 518 compPrefSize.put("jTextField1", new Dimension (59, 20)); 519 compBounds.put("jTextField2", new Rectangle (116, 37, 59, 20)); 520 baselinePosition.put("jTextField2-59-20", new Integer (14)); 521 compPrefSize.put("jTextField2", new Dimension (59, 20)); 522 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); ld.updateCurrentState(); 541 lc = new LayoutComponent("jTextField3", false); 543 baselinePosition.put("jTextField3-59-20", new Integer (14)); 545 { 546 LayoutComponent[] comps = new LayoutComponent[] { lc }; 547 Rectangle [] bounds = new Rectangle [] { 548 new Rectangle (116, 34, 59, 20) 549 }; 550 String defaultContId= "Form"; 551 Point hotspot = new Point (141,44); 552 ld.startAdding(comps, bounds, hotspot, defaultContId); 553 } 554 prefPaddingInParent.put("Form-jTextField3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); prefPadding.put("jLabel1-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jTextField3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jTextField3-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jTextField3-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jTextField3-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-2", new Integer (10)); prefPadding.put("jTextField2-jTextField3-0-0-2", new Integer (10)); { 577 Point p = new Point (135,67); 578 String containerId= "Form"; 579 boolean autoPositioning = true; 580 boolean lockDimension = false; 581 Rectangle [] bounds = new Rectangle [] { 582 new Rectangle (116, 60, 59, 20) 583 }; 584 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 585 } 586 prefPaddingInParent.put("Form-jTextField3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); prefPadding.put("jLabel1-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jTextField3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jTextField3-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jTextField3-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jTextField3-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-2", new Integer (10)); prefPadding.put("jTextField2-jTextField3-0-0-2", new Integer (10)); { 609 Point p = new Point (135,68); 610 String containerId= "Form"; 611 boolean autoPositioning = true; 612 boolean lockDimension = false; 613 Rectangle [] bounds = new Rectangle [] { 614 new Rectangle (116, 60, 59, 20) 615 }; 616 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 617 } 618 compPrefSize.put("jTextField3", new Dimension (59, 20)); 621 compPrefSize.put("jTextField3", new Dimension (59, 20)); 622 prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); ld.endMoving(true); 624 ld.externalSizeChangeHappened(); 626 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 628 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 629 baselinePosition.put("jLabel1-102-14", new Integer (11)); 630 compPrefSize.put("jLabel1", new Dimension (102, 14)); 631 compBounds.put("jLabel2", new Rectangle (44, 40, 68, 14)); 632 baselinePosition.put("jLabel2-68-14", new Integer (11)); 633 compPrefSize.put("jLabel2", new Dimension (68, 14)); 634 compBounds.put("jLabel3", new Rectangle (78, 66, 34, 14)); 635 baselinePosition.put("jLabel3-34-14", new Integer (11)); 636 compPrefSize.put("jLabel3", new Dimension (34, 14)); 637 compBounds.put("jTextField1", new Rectangle (116, 11, 59, 20)); 638 baselinePosition.put("jTextField1-59-20", new Integer (14)); 639 compPrefSize.put("jTextField1", new Dimension (59, 20)); 640 compBounds.put("jTextField2", new Rectangle (116, 37, 59, 20)); 641 baselinePosition.put("jTextField2-59-20", new Integer (14)); 642 compPrefSize.put("jTextField2", new Dimension (59, 20)); 643 compBounds.put("jTextField3", new Rectangle (116, 63, 59, 20)); 644 baselinePosition.put("jTextField3-59-20", new Integer (14)); 645 compPrefSize.put("jTextField3", new Dimension (59, 20)); 646 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); ld.updateCurrentState(); 671 { 674 String [] compIds = new String [] { 675 "jTextField1" 676 }; 677 Rectangle [] bounds = new Rectangle [] { 678 new Rectangle (116, 11, 59, 20) 679 }; 680 Point hotspot = new Point (176,23); 681 int[] resizeEdges = new int[] { 682 1, 683 -1 684 }; 685 boolean inLayout = true; 686 ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout); 687 } 688 baselinePosition.put("jTextField1-59-20", new Integer (14)); 689 compPrefSize.put("jTextField1", new Dimension (59, 20)); 690 prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); { 694 Point p = new Point (368,24); 695 String containerId= "Form"; 696 boolean autoPositioning = true; 697 boolean lockDimension = false; 698 Rectangle [] bounds = new Rectangle [] { 699 new Rectangle (116, 11, 251, 20) 700 }; 701 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 702 } 703 prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); { 707 Point p = new Point (369,24); 708 String containerId= "Form"; 709 boolean autoPositioning = true; 710 boolean lockDimension = false; 711 Rectangle [] bounds = new Rectangle [] { 712 new Rectangle (116, 11, 252, 20) 713 }; 714 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 715 } 716 prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); ld.endMoving(true); 722 ld.externalSizeChangeHappened(); 724 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 726 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 727 baselinePosition.put("jLabel1-102-14", new Integer (11)); 728 compPrefSize.put("jLabel1", new Dimension (102, 14)); 729 compBounds.put("jLabel2", new Rectangle (44, 40, 68, 14)); 730 baselinePosition.put("jLabel2-68-14", new Integer (11)); 731 compPrefSize.put("jLabel2", new Dimension (68, 14)); 732 compBounds.put("jLabel3", new Rectangle (78, 66, 34, 14)); 733 baselinePosition.put("jLabel3-34-14", new Integer (11)); 734 compPrefSize.put("jLabel3", new Dimension (34, 14)); 735 compBounds.put("jTextField2", new Rectangle (116, 37, 59, 20)); 736 baselinePosition.put("jTextField2-59-20", new Integer (14)); 737 compPrefSize.put("jTextField2", new Dimension (59, 20)); 738 compBounds.put("jTextField3", new Rectangle (116, 63, 59, 20)); 739 baselinePosition.put("jTextField3-59-20", new Integer (14)); 740 compPrefSize.put("jTextField3", new Dimension (59, 20)); 741 compBounds.put("jTextField1", new Rectangle (116, 11, 252, 20)); 742 baselinePosition.put("jTextField1-252-20", new Integer (14)); 743 compPrefSize.put("jTextField1", new Dimension (59, 20)); 744 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); ld.updateCurrentState(); 767 { 770 LayoutComponent comp = lm.getLayoutComponent("jTextField1"); 771 int dimension = 0; 772 boolean resizing = true; 773 ld.setComponentResizing(comp, dimension, resizing); 774 } 775 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); ld.externalSizeChangeHappened(); 789 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 791 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 792 baselinePosition.put("jLabel1-102-14", new Integer (11)); 793 compPrefSize.put("jLabel1", new Dimension (102, 14)); 794 compBounds.put("jLabel2", new Rectangle (44, 40, 68, 14)); 795 baselinePosition.put("jLabel2-68-14", new Integer (11)); 796 compPrefSize.put("jLabel2", new Dimension (68, 14)); 797 compBounds.put("jLabel3", new Rectangle (78, 66, 34, 14)); 798 baselinePosition.put("jLabel3-34-14", new Integer (11)); 799 compPrefSize.put("jLabel3", new Dimension (34, 14)); 800 compBounds.put("jTextField2", new Rectangle (116, 37, 59, 20)); 801 baselinePosition.put("jTextField2-59-20", new Integer (14)); 802 compPrefSize.put("jTextField2", new Dimension (59, 20)); 803 compBounds.put("jTextField3", new Rectangle (116, 63, 59, 20)); 804 baselinePosition.put("jTextField3-59-20", new Integer (14)); 805 compPrefSize.put("jTextField3", new Dimension (59, 20)); 806 compBounds.put("jTextField1", new Rectangle (116, 11, 252, 20)); 807 baselinePosition.put("jTextField1-252-20", new Integer (14)); 808 compPrefSize.put("jTextField1", new Dimension (59, 20)); 809 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); ld.updateCurrentState(); 832 { 835 String [] compIds = new String [] { 836 "jTextField2" 837 }; 838 Rectangle [] bounds = new Rectangle [] { 839 new Rectangle (116, 37, 59, 20) 840 }; 841 Point hotspot = new Point (173,49); 842 int[] resizeEdges = new int[] { 843 1, 844 -1 845 }; 846 boolean inLayout = true; 847 ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout); 848 } 849 baselinePosition.put("jTextField2-59-20", new Integer (14)); 850 compPrefSize.put("jTextField2", new Dimension (59, 20)); 851 prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); { 855 Point p = new Point (364,51); 856 String containerId= "Form"; 857 boolean autoPositioning = true; 858 boolean lockDimension = false; 859 Rectangle [] bounds = new Rectangle [] { 860 new Rectangle (116, 37, 252, 20) 861 }; 862 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 863 } 864 prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); { 868 Point p = new Point (365,51); 869 String containerId= "Form"; 870 boolean autoPositioning = true; 871 boolean lockDimension = false; 872 Rectangle [] bounds = new Rectangle [] { 873 new Rectangle (116, 37, 252, 20) 874 }; 875 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 876 } 877 ld.endMoving(true); 880 ld.externalSizeChangeHappened(); 882 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 884 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 885 baselinePosition.put("jLabel1-102-14", new Integer (11)); 886 compPrefSize.put("jLabel1", new Dimension (102, 14)); 887 compBounds.put("jLabel2", new Rectangle (44, 40, 68, 14)); 888 baselinePosition.put("jLabel2-68-14", new Integer (11)); 889 compPrefSize.put("jLabel2", new Dimension (68, 14)); 890 compBounds.put("jLabel3", new Rectangle (78, 66, 34, 14)); 891 baselinePosition.put("jLabel3-34-14", new Integer (11)); 892 compPrefSize.put("jLabel3", new Dimension (34, 14)); 893 compBounds.put("jTextField3", new Rectangle (116, 63, 59, 20)); 894 baselinePosition.put("jTextField3-59-20", new Integer (14)); 895 compPrefSize.put("jTextField3", new Dimension (59, 20)); 896 compBounds.put("jTextField1", new Rectangle (116, 11, 252, 20)); 897 baselinePosition.put("jTextField1-252-20", new Integer (14)); 898 compPrefSize.put("jTextField1", new Dimension (59, 20)); 899 compBounds.put("jTextField2", new Rectangle (116, 37, 252, 20)); 900 baselinePosition.put("jTextField2-252-20", new Integer (14)); 901 compPrefSize.put("jTextField2", new Dimension (59, 20)); 902 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); ld.updateCurrentState(); 925 { 928 String [] compIds = new String [] { 929 "jTextField3" 930 }; 931 Rectangle [] bounds = new Rectangle [] { 932 new Rectangle (116, 63, 59, 20) 933 }; 934 Point hotspot = new Point (176,73); 935 int[] resizeEdges = new int[] { 936 1, 937 -1 938 }; 939 boolean inLayout = true; 940 ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout); 941 } 942 baselinePosition.put("jTextField3-59-20", new Integer (14)); 943 compPrefSize.put("jTextField3", new Dimension (59, 20)); 944 prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); { 948 Point p = new Point (363,75); 949 String containerId= "Form"; 950 boolean autoPositioning = true; 951 boolean lockDimension = false; 952 Rectangle [] bounds = new Rectangle [] { 953 new Rectangle (116, 63, 252, 20) 954 }; 955 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 956 } 957 prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); { 961 Point p = new Point (363,74); 962 String containerId= "Form"; 963 boolean autoPositioning = true; 964 boolean lockDimension = false; 965 Rectangle [] bounds = new Rectangle [] { 966 new Rectangle (116, 63, 252, 20) 967 }; 968 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 969 } 970 ld.endMoving(true); 973 ld.externalSizeChangeHappened(); 975 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 977 compBounds.put("jLabel1", new Rectangle (10, 14, 102, 14)); 978 baselinePosition.put("jLabel1-102-14", new Integer (11)); 979 compPrefSize.put("jLabel1", new Dimension (102, 14)); 980 compBounds.put("jLabel2", new Rectangle (44, 40, 68, 14)); 981 baselinePosition.put("jLabel2-68-14", new Integer (11)); 982 compPrefSize.put("jLabel2", new Dimension (68, 14)); 983 compBounds.put("jLabel3", new Rectangle (78, 66, 34, 14)); 984 baselinePosition.put("jLabel3-34-14", new Integer (11)); 985 compPrefSize.put("jLabel3", new Dimension (34, 14)); 986 compBounds.put("jTextField1", new Rectangle (116, 11, 252, 20)); 987 baselinePosition.put("jTextField1-252-20", new Integer (14)); 988 compPrefSize.put("jTextField1", new Dimension (59, 20)); 989 compBounds.put("jTextField2", new Rectangle (116, 37, 252, 20)); 990 baselinePosition.put("jTextField2-252-20", new Integer (14)); 991 compPrefSize.put("jTextField2", new Dimension (59, 20)); 992 compBounds.put("jTextField3", new Rectangle (116, 63, 252, 20)); 993 baselinePosition.put("jTextField3-252-20", new Integer (14)); 994 compPrefSize.put("jTextField3", new Dimension (59, 20)); 995 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); ld.updateCurrentState(); 1018 } 1020 1021 public void doChanges1() { 1023 lc = new LayoutComponent("jButton1", false); 1024 baselinePosition.put("jButton1-75-23", new Integer (15)); 1026 { 1027 LayoutComponent[] comps = new LayoutComponent[] { lc }; 1028 Rectangle [] bounds = new Rectangle [] { 1029 new Rectangle (0, 0, 75, 23) 1030 }; 1031 String defaultContId = null; 1032 Point hotspot = new Point (33,11); 1033 ld.startAdding(comps, bounds, hotspot, defaultContId); 1034 } 1035 prefPaddingInParent.put("Form-jButton1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton1-1-1", new Integer (11)); prefPadding.put("jLabel1-jButton1-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton1-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jButton1-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jButton1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jButton1-0-1", new Integer (10)); prefPadding.put("jLabel1-jButton1-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jButton1-0-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField1-0-0-0", new Integer (6)); { 1057 Point p = new Point (157,27); 1058 String containerId= "Form"; 1059 boolean autoPositioning = true; 1060 boolean lockDimension = false; 1061 Rectangle [] bounds = new Rectangle [] { 1062 new Rectangle (124, 10, 75, 23) 1063 }; 1064 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1065 } 1066 prefPaddingInParent.put("Form-jButton1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton1-1-1", new Integer (11)); prefPadding.put("jLabel1-jButton1-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton1-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jButton1-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton1-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jButton1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jButton1-0-1", new Integer (10)); prefPadding.put("jLabel1-jButton1-0-0-0", new Integer (4)); prefPadding.put("jButton1-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jButton1-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jButton1-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jTextField1-jButton1-0-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField1-0-0-0", new Integer (6)); { 1091 Point p = new Point (156,27); 1092 String containerId= "Form"; 1093 boolean autoPositioning = true; 1094 boolean lockDimension = false; 1095 Rectangle [] bounds = new Rectangle [] { 1096 new Rectangle (116, 10, 75, 23) 1097 }; 1098 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1099 } 1100 compPrefSize.put("jButton1", new Dimension (75, 23)); 1103 compPrefSize.put("jButton1", new Dimension (75, 23)); 1104 ld.endMoving(true); 1105 ld.externalSizeChangeHappened(); 1107 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 1109 compBounds.put("jLabel1", new Rectangle (10, 15, 102, 14)); 1110 baselinePosition.put("jLabel1-102-14", new Integer (11)); 1111 compPrefSize.put("jLabel1", new Dimension (102, 14)); 1112 compBounds.put("jLabel2", new Rectangle (44, 43, 68, 14)); 1113 baselinePosition.put("jLabel2-68-14", new Integer (11)); 1114 compPrefSize.put("jLabel2", new Dimension (68, 14)); 1115 compBounds.put("jLabel3", new Rectangle (78, 69, 34, 14)); 1116 baselinePosition.put("jLabel3-34-14", new Integer (11)); 1117 compPrefSize.put("jLabel3", new Dimension (34, 14)); 1118 compBounds.put("jTextField1", new Rectangle (197, 12, 171, 20)); 1119 baselinePosition.put("jTextField1-171-20", new Integer (14)); 1120 compPrefSize.put("jTextField1", new Dimension (59, 20)); 1121 compBounds.put("jTextField2", new Rectangle (116, 40, 252, 20)); 1122 baselinePosition.put("jTextField2-252-20", new Integer (14)); 1123 compPrefSize.put("jTextField2", new Dimension (59, 20)); 1124 compBounds.put("jTextField3", new Rectangle (116, 66, 252, 20)); 1125 baselinePosition.put("jTextField3-252-20", new Integer (14)); 1126 compPrefSize.put("jTextField3", new Dimension (59, 20)); 1127 compBounds.put("jButton1", new Rectangle (116, 11, 75, 23)); 1128 baselinePosition.put("jButton1-75-23", new Integer (15)); 1129 compPrefSize.put("jButton1", new Dimension (75, 23)); 1130 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jButton1-jTextField1-0-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jButton1-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jButton1-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jTextField3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jButton1-0-0-0", new Integer (4)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); ld.updateCurrentState(); 1159 } 1161 1162 public void doChanges2() { 1165 lc = new LayoutComponent("jButton2", false); 1166 baselinePosition.put("jButton2-75-23", new Integer (15)); 1168 { 1169 LayoutComponent[] comps = new LayoutComponent[] { lc }; 1170 Rectangle [] bounds = new Rectangle [] { 1171 new Rectangle (0, 0, 75, 23) 1172 }; 1173 String defaultContId = null; 1174 Point hotspot = new Point (33,11); 1175 ld.startAdding(comps, bounds, hotspot, defaultContId); 1176 } 1177 prefPaddingInParent.put("Form-jButton2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton2-1-1", new Integer (11)); prefPadding.put("jLabel1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jButton2-jButton1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jButton2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jButton2-0-1", new Integer (10)); prefPadding.put("jLabel2-jButton2-0-0-0", new Integer (4)); prefPadding.put("jButton2-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jLabel1-jButton2-0-0-2", new Integer (10)); prefPadding.put("jButton1-jButton2-0-0-2", new Integer (10)); prefPadding.put("jTextField1-jButton2-0-0-2", new Integer (10)); { 1203 Point p = new Point (98,56); 1204 String containerId= "Form"; 1205 boolean autoPositioning = true; 1206 boolean lockDimension = false; 1207 Rectangle [] bounds = new Rectangle [] { 1208 new Rectangle (65, 39, 75, 23) 1209 }; 1210 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1211 } 1212 prefPaddingInParent.put("Form-jButton2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton2-1-1", new Integer (11)); prefPadding.put("jLabel1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jButton2-jButton1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jButton2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jButton2-0-1", new Integer (10)); prefPadding.put("jLabel2-jButton2-0-0-0", new Integer (4)); prefPadding.put("jButton2-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jLabel1-jButton2-0-0-2", new Integer (10)); prefPadding.put("jButton1-jButton2-0-0-2", new Integer (10)); prefPadding.put("jTextField1-jButton2-0-0-2", new Integer (10)); { 1238 Point p = new Point (97,56); 1239 String containerId= "Form"; 1240 boolean autoPositioning = true; 1241 boolean lockDimension = false; 1242 Rectangle [] bounds = new Rectangle [] { 1243 new Rectangle (64, 39, 75, 23) 1244 }; 1245 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1246 } 1247 compPrefSize.put("jButton2", new Dimension (75, 23)); 1250 compPrefSize.put("jButton2", new Dimension (75, 23)); 1251 ld.endMoving(true); 1252 ld.externalSizeChangeHappened(); 1254 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 1256 compBounds.put("jLabel1", new Rectangle (10, 15, 102, 14)); 1257 baselinePosition.put("jLabel1-102-14", new Integer (11)); 1258 compPrefSize.put("jLabel1", new Dimension (102, 14)); 1259 compBounds.put("jLabel2", new Rectangle (44, 44, 68, 14)); 1260 baselinePosition.put("jLabel2-68-14", new Integer (11)); 1261 compPrefSize.put("jLabel2", new Dimension (68, 14)); 1262 compBounds.put("jLabel3", new Rectangle (78, 72, 34, 14)); 1263 baselinePosition.put("jLabel3-34-14", new Integer (11)); 1264 compPrefSize.put("jLabel3", new Dimension (34, 14)); 1265 compBounds.put("jTextField1", new Rectangle (278, 12, 90, 20)); 1266 baselinePosition.put("jTextField1-90-20", new Integer (14)); 1267 compPrefSize.put("jTextField1", new Dimension (59, 20)); 1268 compBounds.put("jTextField2", new Rectangle (197, 41, 171, 20)); 1269 baselinePosition.put("jTextField2-171-20", new Integer (14)); 1270 compPrefSize.put("jTextField2", new Dimension (59, 20)); 1271 compBounds.put("jTextField3", new Rectangle (197, 69, 171, 20)); 1272 baselinePosition.put("jTextField3-171-20", new Integer (14)); 1273 compPrefSize.put("jTextField3", new Dimension (59, 20)); 1274 compBounds.put("jButton1", new Rectangle (197, 11, 75, 23)); 1275 baselinePosition.put("jButton1-75-23", new Integer (15)); 1276 compPrefSize.put("jButton1", new Dimension (75, 23)); 1277 compBounds.put("jButton2", new Rectangle (116, 40, 75, 23)); 1278 baselinePosition.put("jButton2-75-23", new Integer (15)); 1279 compPrefSize.put("jButton2", new Dimension (75, 23)); 1280 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jButton2-0-0-0", new Integer (4)); prefPadding.put("jButton1-jTextField1-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton2-jButton1-0-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); ld.updateCurrentState(); 1311 } 1313 1314 public void doChanges3() { 1316 lc = new LayoutComponent("jButton3", false); 1317 baselinePosition.put("jButton3-75-23", new Integer (15)); 1319 { 1320 LayoutComponent[] comps = new LayoutComponent[] { lc }; 1321 Rectangle [] bounds = new Rectangle [] { 1322 new Rectangle (0, 0, 75, 23) 1323 }; 1324 String defaultContId = null; 1325 Point hotspot = new Point (33,11); 1326 ld.startAdding(comps, bounds, hotspot, defaultContId); 1327 } 1328 prefPaddingInParent.put("Form-jButton3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton3-1-1", new Integer (11)); prefPadding.put("jLabel1-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton1-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jButton3-jButton1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jButton3-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jButton3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jButton3-0-1", new Integer (10)); prefPadding.put("jLabel3-jButton3-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jButton3-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton3-0-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton3-0-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton3-0-0-0", new Integer (6)); prefPadding.put("jButton2-jButton3-0-0-2", new Integer (10)); prefPadding.put("jTextField2-jButton3-0-0-2", new Integer (10)); { 1361 Point p = new Point (152,76); 1362 String containerId= "Form"; 1363 boolean autoPositioning = true; 1364 boolean lockDimension = false; 1365 Rectangle [] bounds = new Rectangle [] { 1366 new Rectangle (116, 68, 75, 23) 1367 }; 1368 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1369 } 1370 prefPaddingInParent.put("Form-jButton3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton3-1-1", new Integer (11)); prefPadding.put("jLabel1-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton1-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jButton3-jButton1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jButton3-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jButton3-0-0", new Integer (10)); prefPaddingInParent.put("Form-jButton3-0-1", new Integer (10)); prefPadding.put("jLabel3-jButton3-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel1-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel2-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel3-0-0-0", new Integer (4)); prefPadding.put("jButton3-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton3-0-0-0", new Integer (6)); prefPadding.put("jTextField3-jButton3-0-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton3-0-0-0", new Integer (6)); prefPadding.put("jButton2-jButton3-0-0-2", new Integer (10)); prefPadding.put("jTextField2-jButton3-0-0-2", new Integer (10)); { 1403 Point p = new Point (152,77); 1404 String containerId= "Form"; 1405 boolean autoPositioning = true; 1406 boolean lockDimension = false; 1407 Rectangle [] bounds = new Rectangle [] { 1408 new Rectangle (116, 68, 75, 23) 1409 }; 1410 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1411 } 1412 compPrefSize.put("jButton3", new Dimension (75, 23)); 1415 compPrefSize.put("jButton3", new Dimension (75, 23)); 1416 prefPadding.put("jButton2-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton2-jButton1-0-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton3-jButton1-0-0-0", new Integer (6)); ld.endMoving(true); 1423 ld.externalSizeChangeHappened(); 1425 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 1427 compBounds.put("jLabel1", new Rectangle (10, 15, 102, 14)); 1428 baselinePosition.put("jLabel1-102-14", new Integer (11)); 1429 compPrefSize.put("jLabel1", new Dimension (102, 14)); 1430 compBounds.put("jLabel2", new Rectangle (44, 44, 68, 14)); 1431 baselinePosition.put("jLabel2-68-14", new Integer (11)); 1432 compPrefSize.put("jLabel2", new Dimension (68, 14)); 1433 compBounds.put("jLabel3", new Rectangle (78, 73, 34, 14)); 1434 baselinePosition.put("jLabel3-34-14", new Integer (11)); 1435 compPrefSize.put("jLabel3", new Dimension (34, 14)); 1436 compBounds.put("jTextField1", new Rectangle (278, 12, 90, 20)); 1437 baselinePosition.put("jTextField1-90-20", new Integer (14)); 1438 compPrefSize.put("jTextField1", new Dimension (59, 20)); 1439 compBounds.put("jTextField2", new Rectangle (197, 41, 171, 20)); 1440 baselinePosition.put("jTextField2-171-20", new Integer (14)); 1441 compPrefSize.put("jTextField2", new Dimension (59, 20)); 1442 compBounds.put("jTextField3", new Rectangle (197, 70, 171, 20)); 1443 baselinePosition.put("jTextField3-171-20", new Integer (14)); 1444 compPrefSize.put("jTextField3", new Dimension (59, 20)); 1445 compBounds.put("jButton1", new Rectangle (197, 11, 75, 23)); 1446 baselinePosition.put("jButton1-75-23", new Integer (15)); 1447 compPrefSize.put("jButton1", new Dimension (75, 23)); 1448 compBounds.put("jButton2", new Rectangle (116, 40, 75, 23)); 1449 baselinePosition.put("jButton2-75-23", new Integer (15)); 1450 compPrefSize.put("jButton2", new Dimension (75, 23)); 1451 compBounds.put("jButton3", new Rectangle (116, 69, 75, 23)); 1452 baselinePosition.put("jButton3-75-23", new Integer (15)); 1453 compPrefSize.put("jButton3", new Dimension (75, 23)); 1454 prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel1-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jButton3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jButton3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jButton3-0-0-0", new Integer (4)); prefPadding.put("jButton1-jTextField1-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton2-jButton1-0-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton3-jButton1-0-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jButton1-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jButton3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jButton3-1-1", new Integer (11)); ld.updateCurrentState(); 1495 } 1497 1498 public void doChanges4() { 1500 lc = new LayoutComponent("jLabel4", false); 1501 baselinePosition.put("jLabel4-34-14", new Integer (11)); 1503 { 1504 LayoutComponent[] comps = new LayoutComponent[] { lc }; 1505 Rectangle [] bounds = new Rectangle [] { 1506 new Rectangle (0, 0, 34, 14) 1507 }; 1508 String defaultContId = null; 1509 Point hotspot = new Point (13,7); 1510 ld.startAdding(comps, bounds, hotspot, defaultContId); 1511 } 1512 prefPaddingInParent.put("Form-jLabel4-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel4-1-1", new Integer (11)); prefPadding.put("jLabel1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel3-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel4-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel4-0-1", new Integer (10)); prefPadding.put("jLabel4-jButton2-0-0-0", new Integer (4)); prefPadding.put("jButton2-jLabel4-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel4-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jButton1-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jLabel4-0-0-2", new Integer (10)); { 1544 Point p = new Point (88,37); 1545 String containerId= "Form"; 1546 boolean autoPositioning = true; 1547 boolean lockDimension = false; 1548 Rectangle [] bounds = new Rectangle [] { 1549 new Rectangle (78, 30, 34, 14) 1550 }; 1551 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1552 } 1553 prefPaddingInParent.put("Form-jLabel4-1-0", new Integer (11)); prefPaddingInParent.put("Form-jLabel4-1-1", new Integer (11)); prefPadding.put("jLabel1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel1-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton1-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton3-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel4-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel4-0-1", new Integer (10)); prefPadding.put("jLabel4-jButton2-0-0-0", new Integer (4)); prefPadding.put("jButton2-jLabel4-0-0-0", new Integer (4)); prefPadding.put("jButton3-jLabel4-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jButton1-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jTextField1-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jTextField2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jLabel4-0-0-2", new Integer (10)); { 1586 Point p = new Point (88,36); 1587 String containerId= "Form"; 1588 boolean autoPositioning = true; 1589 boolean lockDimension = false; 1590 Rectangle [] bounds = new Rectangle [] { 1591 new Rectangle (78, 29, 34, 14) 1592 }; 1593 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 1594 } 1595 compPrefSize.put("jLabel4", new Dimension (34, 14)); 1598 compPrefSize.put("jLabel4", new Dimension (34, 14)); 1599 prefPaddingInParent.put("Form-jLabel4-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); ld.endMoving(true); 1604 ld.externalSizeChangeHappened(); 1606 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 1608 compBounds.put("jLabel1", new Rectangle (10, 15, 102, 14)); 1609 baselinePosition.put("jLabel1-102-14", new Integer (11)); 1610 compPrefSize.put("jLabel1", new Dimension (102, 14)); 1611 compBounds.put("jLabel2", new Rectangle (44, 64, 68, 14)); 1612 baselinePosition.put("jLabel2-68-14", new Integer (11)); 1613 compPrefSize.put("jLabel2", new Dimension (68, 14)); 1614 compBounds.put("jLabel3", new Rectangle (78, 93, 34, 14)); 1615 baselinePosition.put("jLabel3-34-14", new Integer (11)); 1616 compPrefSize.put("jLabel3", new Dimension (34, 14)); 1617 compBounds.put("jTextField1", new Rectangle (278, 12, 90, 20)); 1618 baselinePosition.put("jTextField1-90-20", new Integer (14)); 1619 compPrefSize.put("jTextField1", new Dimension (59, 20)); 1620 compBounds.put("jTextField2", new Rectangle (197, 61, 171, 20)); 1621 baselinePosition.put("jTextField2-171-20", new Integer (14)); 1622 compPrefSize.put("jTextField2", new Dimension (59, 20)); 1623 compBounds.put("jTextField3", new Rectangle (197, 90, 171, 20)); 1624 baselinePosition.put("jTextField3-171-20", new Integer (14)); 1625 compPrefSize.put("jTextField3", new Dimension (59, 20)); 1626 compBounds.put("jButton1", new Rectangle (197, 11, 75, 23)); 1627 baselinePosition.put("jButton1-75-23", new Integer (15)); 1628 compPrefSize.put("jButton1", new Dimension (75, 23)); 1629 compBounds.put("jButton2", new Rectangle (116, 60, 75, 23)); 1630 baselinePosition.put("jButton2-75-23", new Integer (15)); 1631 compPrefSize.put("jButton2", new Dimension (75, 23)); 1632 compBounds.put("jButton3", new Rectangle (116, 89, 75, 23)); 1633 baselinePosition.put("jButton3-75-23", new Integer (15)); 1634 compPrefSize.put("jButton3", new Dimension (75, 23)); 1635 compBounds.put("jLabel4", new Rectangle (78, 40, 34, 14)); 1636 baselinePosition.put("jLabel4-34-14", new Integer (11)); 1637 compPrefSize.put("jLabel4", new Dimension (34, 14)); 1638 prefPaddingInParent.put("Form-jLabel4-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel2-0-0", new Integer (10)); prefPaddingInParent.put("Form-jLabel3-0-0", new Integer (10)); prefPadding.put("jLabel4-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel4-jButton3-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel1-jButton3-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel2-jButton3-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jButton2-0-0-0", new Integer (4)); prefPadding.put("jLabel3-jButton3-0-0-0", new Integer (4)); prefPadding.put("jButton1-jTextField1-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton2-jButton1-0-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField2-0-0-0", new Integer (6)); prefPadding.put("jButton3-jTextField3-0-0-0", new Integer (6)); prefPadding.put("jButton3-jButton1-0-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jButton1-1-0", new Integer (11)); prefPadding.put("jLabel1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jTextField1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jButton1-jLabel4-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jLabel2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jTextField2-1-0-0", new Integer (6)); prefPadding.put("jLabel4-jButton2-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jLabel2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jButton3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jLabel3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jButton2-jButton3-1-0-0", new Integer (6)); prefPaddingInParent.put("Form-jLabel3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); prefPaddingInParent.put("Form-jButton3-1-1", new Integer (11)); ld.updateCurrentState(); 1679 } 1681 1682} 1683 | Popular Tags |