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.*; 28 import org.openide.filesystems.FileUtil; 29 30 public class ALT_ParallelPosition20Test extends LayoutTestCase { 33 34 public ALT_ParallelPosition20Test(String name) { 35 super(name); 36 try { 37 className = this.getClass().getName(); 38 className = className.substring(className.lastIndexOf('.') + 1, className.length()); 39 startingFormFile = FileUtil.toFileObject(new File (url.getFile() + goldenFilesPath + className + "-StartingForm.form").getCanonicalFile()); 40 } catch (IOException ioe) { 41 fail(ioe.toString()); 42 } 43 } 44 45 public void doChanges0() { 48 ld.externalSizeChangeHappened(); 49 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 51 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 52 ld.updateCurrentState(); 53 lc = new LayoutComponent("jTextField1", false); 55 baselinePosition.put("jTextField1-59-20", new Integer (14)); 57 { 58 LayoutComponent[] comps = new LayoutComponent[] { lc }; 59 Rectangle [] bounds = new Rectangle [] { 60 new Rectangle (0, 0, 59, 20) 61 }; 62 String defaultContId = null; 63 Point hotspot = new Point (25,10); 64 ld.startAdding(comps, bounds, hotspot, defaultContId); 65 } 66 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)); { 73 Point p = new Point (213,27); 74 String containerId= "Form"; 75 boolean autoPositioning = true; 76 boolean lockDimension = false; 77 Rectangle [] bounds = new Rectangle [] { 78 new Rectangle (188, 11, 59, 20) 79 }; 80 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 81 } 82 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)); { 89 Point p = new Point (212,27); 90 String containerId= "Form"; 91 boolean autoPositioning = true; 92 boolean lockDimension = false; 93 Rectangle [] bounds = new Rectangle [] { 94 new Rectangle (187, 11, 59, 20) 95 }; 96 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 97 } 98 compPrefSize.put("jTextField1", new Dimension (59, 20)); 101 compPrefSize.put("jTextField1", new Dimension (59, 20)); 102 prefPaddingInParent.put("Form-jTextField1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jTextField1-0-1", new Integer (10)); prefPaddingInParent.put("Form-jTextField1-1-1", new Integer (10)); ld.endMoving(true); 106 ld.externalSizeChangeHappened(); 108 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 110 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 111 baselinePosition.put("jTextField1-59-20", new Integer (14)); 112 compPrefSize.put("jTextField1", new Dimension (59, 20)); 113 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 114 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 115 baselinePosition.put("jTextField1-59-20", new Integer (14)); 116 ld.updateCurrentState(); 117 lc = new LayoutComponent("jTextField2", false); 119 baselinePosition.put("jTextField2-59-20", new Integer (14)); 121 { 122 LayoutComponent[] comps = new LayoutComponent[] { lc }; 123 Rectangle [] bounds = new Rectangle [] { 124 new Rectangle (187, 11, 59, 20) 125 }; 126 String defaultContId= "Form"; 127 Point hotspot = new Point (212,21); 128 ld.startAdding(comps, bounds, hotspot, defaultContId); 129 } 130 prefPaddingInParent.put("Form-jTextField2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField2-1-1", new Integer (11)); prefPadding.put("jTextField1-jTextField2-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("jTextField1-jTextField2-0-0-2", new Integer (10)); { 140 Point p = new Point (210,47); 141 String containerId= "Form"; 142 boolean autoPositioning = true; 143 boolean lockDimension = false; 144 Rectangle [] bounds = new Rectangle [] { 145 new Rectangle (187, 37, 59, 20) 146 }; 147 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 148 } 149 prefPaddingInParent.put("Form-jTextField2-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField2-1-1", new Integer (11)); prefPadding.put("jTextField1-jTextField2-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("jTextField1-jTextField2-0-0-2", new Integer (10)); { 159 Point p = new Point (210,48); 160 String containerId= "Form"; 161 boolean autoPositioning = true; 162 boolean lockDimension = false; 163 Rectangle [] bounds = new Rectangle [] { 164 new Rectangle (187, 37, 59, 20) 165 }; 166 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 167 } 168 compPrefSize.put("jTextField2", new Dimension (59, 20)); 171 compPrefSize.put("jTextField2", new Dimension (59, 20)); 172 prefPaddingInParent.put("Form-jTextField2-0-1", new Integer (10)); prefPaddingInParent.put("Form-jTextField2-1-1", new Integer (10)); ld.endMoving(true); 175 ld.externalSizeChangeHappened(); 177 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 179 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 180 baselinePosition.put("jTextField1-59-20", new Integer (14)); 181 compPrefSize.put("jTextField1", new Dimension (59, 20)); 182 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 183 baselinePosition.put("jTextField2-59-20", new Integer (14)); 184 compPrefSize.put("jTextField2", new Dimension (59, 20)); 185 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 186 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 187 baselinePosition.put("jTextField1-59-20", new Integer (14)); 188 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 189 baselinePosition.put("jTextField2-59-20", new Integer (14)); 190 ld.updateCurrentState(); 191 lc = new LayoutComponent("jTextField3", false); 193 baselinePosition.put("jTextField3-59-20", new Integer (14)); 195 { 196 LayoutComponent[] comps = new LayoutComponent[] { lc }; 197 Rectangle [] bounds = new Rectangle [] { 198 new Rectangle (187, 37, 59, 20) 199 }; 200 String defaultContId= "Form"; 201 Point hotspot = new Point (212,47); 202 ld.startAdding(comps, bounds, hotspot, defaultContId); 203 } 204 prefPaddingInParent.put("Form-jTextField3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); prefPadding.put("jTextField1-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField2-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("jTextField2-jTextField3-0-0-2", new Integer (10)); { 216 Point p = new Point (212,69); 217 String containerId= "Form"; 218 boolean autoPositioning = true; 219 boolean lockDimension = false; 220 Rectangle [] bounds = new Rectangle [] { 221 new Rectangle (187, 63, 59, 20) 222 }; 223 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 224 } 225 prefPaddingInParent.put("Form-jTextField3-1-0", new Integer (11)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (11)); prefPadding.put("jTextField1-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField1-1-0-0", new Integer (6)); prefPadding.put("jTextField2-jTextField3-1-0-0", new Integer (6)); prefPadding.put("jTextField3-jTextField2-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("jTextField2-jTextField3-0-0-2", new Integer (10)); { 237 Point p = new Point (213,69); 238 String containerId= "Form"; 239 boolean autoPositioning = true; 240 boolean lockDimension = false; 241 Rectangle [] bounds = new Rectangle [] { 242 new Rectangle (187, 63, 59, 20) 243 }; 244 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 245 } 246 compPrefSize.put("jTextField3", new Dimension (59, 20)); 249 compPrefSize.put("jTextField3", new Dimension (59, 20)); 250 prefPaddingInParent.put("Form-jTextField3-0-1", new Integer (10)); prefPaddingInParent.put("Form-jTextField3-1-1", new Integer (10)); ld.endMoving(true); 253 ld.externalSizeChangeHappened(); 255 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 257 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 258 baselinePosition.put("jTextField1-59-20", new Integer (14)); 259 compPrefSize.put("jTextField1", new Dimension (59, 20)); 260 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 261 baselinePosition.put("jTextField2-59-20", new Integer (14)); 262 compPrefSize.put("jTextField2", new Dimension (59, 20)); 263 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 264 baselinePosition.put("jTextField3-59-20", new Integer (14)); 265 compPrefSize.put("jTextField3", new Dimension (59, 20)); 266 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 267 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 268 baselinePosition.put("jTextField1-59-20", new Integer (14)); 269 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 270 baselinePosition.put("jTextField2-59-20", new Integer (14)); 271 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 272 baselinePosition.put("jTextField3-59-20", new Integer (14)); 273 ld.updateCurrentState(); 274 lc = new LayoutComponent("jScrollPane1", false); 276 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 278 { 279 LayoutComponent[] comps = new LayoutComponent[] { lc }; 280 Rectangle [] bounds = new Rectangle [] { 281 new Rectangle (0, 0, 37, 132) 282 }; 283 String defaultContId = null; 284 Point hotspot = new Point (14,66); 285 ld.startAdding(comps, bounds, hotspot, defaultContId); 286 } 287 prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jScrollPane1-1-1", new Integer (11)); prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jScrollPane1-0-1", new Integer (10)); prefPadding.put("jTextField3-jScrollPane1-0-0-0", new Integer (6)); prefPadding.put("jTextField2-jScrollPane1-0-0-0", new Integer (6)); prefPadding.put("jTextField1-jScrollPane1-0-0-0", new Integer (6)); { 297 Point p = new Point (361,77); 298 String containerId= "Form"; 299 boolean autoPositioning = true; 300 boolean lockDimension = false; 301 Rectangle [] bounds = new Rectangle [] { 302 new Rectangle (353, 11, 37, 132) 303 }; 304 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 305 } 306 prefPaddingInParent.put("Form-jScrollPane1-1-0", new Integer (11)); prefPaddingInParent.put("Form-jScrollPane1-1-1", new Integer (11)); prefPaddingInParent.put("Form-jScrollPane1-0-0", new Integer (10)); prefPaddingInParent.put("Form-jScrollPane1-0-1", new Integer (10)); prefPadding.put("jTextField3-jScrollPane1-0-0-0", new Integer (6)); prefPadding.put("jTextField2-jScrollPane1-0-0-0", new Integer (6)); prefPadding.put("jTextField1-jScrollPane1-0-0-0", new Integer (6)); { 316 Point p = new Point (362,77); 317 String containerId= "Form"; 318 boolean autoPositioning = true; 319 boolean lockDimension = false; 320 Rectangle [] bounds = new Rectangle [] { 321 new Rectangle (353, 11, 37, 132) 322 }; 323 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 324 } 325 compPrefSize.put("jScrollPane1", new Dimension (37, 132)); 328 compPrefSize.put("jScrollPane1", new Dimension (37, 132)); 329 prefPadding.put("jTextField3-jScrollPane1-0-0-0", new Integer (10)); prefPadding.put("jTextField2-jScrollPane1-0-0-0", new Integer (10)); prefPadding.put("jTextField1-jScrollPane1-0-0-0", new Integer (10)); prefPaddingInParent.put("Form-jScrollPane1-1-1", new Integer (10)); ld.endMoving(true); 334 ld.externalSizeChangeHappened(); 336 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 338 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 339 baselinePosition.put("jTextField1-59-20", new Integer (14)); 340 compPrefSize.put("jTextField1", new Dimension (59, 20)); 341 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 342 baselinePosition.put("jTextField2-59-20", new Integer (14)); 343 compPrefSize.put("jTextField2", new Dimension (59, 20)); 344 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 345 baselinePosition.put("jTextField3-59-20", new Integer (14)); 346 compPrefSize.put("jTextField3", new Dimension (59, 20)); 347 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 348 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 349 compPrefSize.put("jScrollPane1", new Dimension (37, 132)); 350 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 351 compBounds.put("jTextField1", new Rectangle (187, 11, 59, 20)); 352 baselinePosition.put("jTextField1-59-20", new Integer (14)); 353 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 354 baselinePosition.put("jTextField2-59-20", new Integer (14)); 355 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 356 baselinePosition.put("jTextField3-59-20", new Integer (14)); 357 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 358 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 359 ld.updateCurrentState(); 360 } 362 363 public void doChanges1() { 365 baselinePosition.put("jTextField1-59-20", new Integer (14)); 367 compPrefSize.put("jTextField1", new Dimension (59, 20)); 368 { 369 String [] compIds = new String [] { 370 "jTextField1" 371 }; 372 Rectangle [] bounds = new Rectangle [] { 373 new Rectangle (187, 11, 59, 20) 374 }; 375 Point hotspot = new Point (246,23); 376 int[] resizeEdges = new int[] { 377 1, 378 -1 379 }; 380 boolean inLayout = true; 381 ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout); 382 } 383 prefPadding.put("jTextField1-jScrollPane1-0-0-0", new Integer (6)); { 387 Point p = new Point (339,23); 388 String containerId= "Form"; 389 boolean autoPositioning = true; 390 boolean lockDimension = false; 391 Rectangle [] bounds = new Rectangle [] { 392 new Rectangle (187, 11, 152, 20) 393 }; 394 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 395 } 396 prefPadding.put("jTextField1-jScrollPane1-0-0-0", new Integer (6)); { 400 Point p = new Point (340,23); 401 String containerId= "Form"; 402 boolean autoPositioning = true; 403 boolean lockDimension = false; 404 Rectangle [] bounds = new Rectangle [] { 405 new Rectangle (187, 11, 160, 20) 406 }; 407 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 408 } 409 prefPadding.put("jTextField3-jScrollPane1-0-0-0", new Integer (6)); prefPadding.put("jTextField2-jScrollPane1-0-0-0", new Integer (6)); ld.endMoving(true); 414 ld.externalSizeChangeHappened(); 416 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 418 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 419 baselinePosition.put("jTextField2-59-20", new Integer (14)); 420 compPrefSize.put("jTextField2", new Dimension (59, 20)); 421 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 422 baselinePosition.put("jTextField3-59-20", new Integer (14)); 423 compPrefSize.put("jTextField3", new Dimension (59, 20)); 424 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 425 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 426 compPrefSize.put("jScrollPane1", new Dimension (37, 132)); 427 compBounds.put("jTextField1", new Rectangle (187, 11, 160, 20)); 428 baselinePosition.put("jTextField1-160-20", new Integer (14)); 429 compPrefSize.put("jTextField1", new Dimension (59, 20)); 430 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 431 compBounds.put("jTextField2", new Rectangle (187, 37, 59, 20)); 432 baselinePosition.put("jTextField2-59-20", new Integer (14)); 433 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 434 baselinePosition.put("jTextField3-59-20", new Integer (14)); 435 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 436 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 437 compBounds.put("jTextField1", new Rectangle (187, 11, 160, 20)); 438 baselinePosition.put("jTextField1-160-20", new Integer (14)); 439 ld.updateCurrentState(); 440 baselinePosition.put("jTextField2-59-20", new Integer (14)); 443 compPrefSize.put("jTextField2", new Dimension (59, 20)); 444 { 445 String [] compIds = new String [] { 446 "jTextField2" 447 }; 448 Rectangle [] bounds = new Rectangle [] { 449 new Rectangle (187, 37, 59, 20) 450 }; 451 Point hotspot = new Point (244,47); 452 int[] resizeEdges = new int[] { 453 1, 454 -1 455 }; 456 boolean inLayout = true; 457 ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout); 458 } 459 prefPadding.put("jTextField2-jScrollPane1-0-0-0", new Integer (6)); { 463 Point p = new Point (337,46); 464 String containerId= "Form"; 465 boolean autoPositioning = true; 466 boolean lockDimension = false; 467 Rectangle [] bounds = new Rectangle [] { 468 new Rectangle (187, 37, 152, 20) 469 }; 470 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 471 } 472 prefPadding.put("jTextField2-jScrollPane1-0-0-0", new Integer (6)); { 476 Point p = new Point (338,46); 477 String containerId= "Form"; 478 boolean autoPositioning = true; 479 boolean lockDimension = false; 480 Rectangle [] bounds = new Rectangle [] { 481 new Rectangle (187, 37, 160, 20) 482 }; 483 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 484 } 485 compPrefSize.put("jTextField2", new Dimension (59, 20)); 488 ld.endMoving(true); 489 ld.externalSizeChangeHappened(); 491 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 493 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 494 baselinePosition.put("jTextField3-59-20", new Integer (14)); 495 compPrefSize.put("jTextField3", new Dimension (59, 20)); 496 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 497 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 498 compPrefSize.put("jScrollPane1", new Dimension (37, 132)); 499 compBounds.put("jTextField1", new Rectangle (187, 11, 160, 20)); 500 baselinePosition.put("jTextField1-160-20", new Integer (14)); 501 compPrefSize.put("jTextField1", new Dimension (59, 20)); 502 compBounds.put("jTextField2", new Rectangle (187, 37, 160, 20)); 503 baselinePosition.put("jTextField2-160-20", new Integer (14)); 504 compPrefSize.put("jTextField2", new Dimension (59, 20)); 505 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 506 compBounds.put("jTextField3", new Rectangle (187, 63, 59, 20)); 507 baselinePosition.put("jTextField3-59-20", new Integer (14)); 508 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 509 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 510 compBounds.put("jTextField1", new Rectangle (187, 11, 160, 20)); 511 baselinePosition.put("jTextField1-160-20", new Integer (14)); 512 compBounds.put("jTextField2", new Rectangle (187, 37, 160, 20)); 513 baselinePosition.put("jTextField2-160-20", new Integer (14)); 514 ld.updateCurrentState(); 515 baselinePosition.put("jTextField3-59-20", new Integer (14)); 518 compPrefSize.put("jTextField3", new Dimension (59, 20)); 519 { 520 String [] compIds = new String [] { 521 "jTextField3" 522 }; 523 Rectangle [] bounds = new Rectangle [] { 524 new Rectangle (187, 63, 59, 20) 525 }; 526 Point hotspot = new Point (247,75); 527 int[] resizeEdges = new int[] { 528 1, 529 -1 530 }; 531 boolean inLayout = true; 532 ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout); 533 } 534 prefPadding.put("jTextField3-jScrollPane1-0-0-0", new Integer (6)); { 538 Point p = new Point (341,70); 539 String containerId= "Form"; 540 boolean autoPositioning = true; 541 boolean lockDimension = false; 542 Rectangle [] bounds = new Rectangle [] { 543 new Rectangle (187, 63, 160, 20) 544 }; 545 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 546 } 547 prefPadding.put("jTextField3-jScrollPane1-0-0-0", new Integer (6)); { 551 Point p = new Point (342,70); 552 String containerId= "Form"; 553 boolean autoPositioning = true; 554 boolean lockDimension = false; 555 Rectangle [] bounds = new Rectangle [] { 556 new Rectangle (187, 63, 160, 20) 557 }; 558 ld.move(p, containerId, autoPositioning, lockDimension, bounds); 559 } 560 compPrefSize.put("jTextField3", new Dimension (59, 20)); 563 ld.endMoving(true); 564 ld.externalSizeChangeHappened(); 566 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 568 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 569 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 570 compPrefSize.put("jScrollPane1", new Dimension (37, 132)); 571 compBounds.put("jTextField1", new Rectangle (187, 11, 160, 20)); 572 baselinePosition.put("jTextField1-160-20", new Integer (14)); 573 compPrefSize.put("jTextField1", new Dimension (59, 20)); 574 compBounds.put("jTextField2", new Rectangle (187, 37, 160, 20)); 575 baselinePosition.put("jTextField2-160-20", new Integer (14)); 576 compPrefSize.put("jTextField2", new Dimension (59, 20)); 577 compBounds.put("jTextField3", new Rectangle (187, 63, 160, 20)); 578 baselinePosition.put("jTextField3-160-20", new Integer (14)); 579 compPrefSize.put("jTextField3", new Dimension (59, 20)); 580 contInterior.put("Form", new Rectangle (0, 0, 400, 300)); 581 compBounds.put("jScrollPane1", new Rectangle (353, 11, 37, 132)); 582 baselinePosition.put("jScrollPane1-37-132", new Integer (0)); 583 compBounds.put("jTextField1", new Rectangle (187, 11, 160, 20)); 584 baselinePosition.put("jTextField1-160-20", new Integer (14)); 585 compBounds.put("jTextField2", new Rectangle (187, 37, 160, 20)); 586 baselinePosition.put("jTextField2-160-20", new Integer (14)); 587 compBounds.put("jTextField3", new Rectangle (187, 63, 160, 20)); 588 baselinePosition.put("jTextField3-160-20", new Integer (14)); 589 ld.updateCurrentState(); 590 } 592 593 } 594 | Popular Tags |