.. | .. |
---|
12 | 12 | import com.jme.math.Vector3f; |
---|
13 | 13 | import com.jme.renderer.ColorRGBA; |
---|
14 | 14 | |
---|
| 15 | +import grafeme.ui.*; |
---|
15 | 16 | //import buoy.widget.BFileChooser; |
---|
16 | 17 | |
---|
17 | 18 | class GroupEditor extends ObjEditor implements //iParse, //iCallBack, |
---|
.. | .. |
---|
433 | 434 | oe.radioPanel.add(dummyButton); |
---|
434 | 435 | oe.buttonGroup.add(dummyButton); |
---|
435 | 436 | */ |
---|
436 | | - aConstraints.gridy += 1; |
---|
437 | | - |
---|
438 | 437 | //this.AddOptions(oe.toolbarPanel, oe.aConstraints); |
---|
439 | 438 | |
---|
440 | | - oe.aConstraints.gridwidth = 1; |
---|
441 | | - oe.aConstraints.gridx = 0; |
---|
442 | | - |
---|
443 | | - oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE()), oe.aConstraints); |
---|
| 439 | + oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints); |
---|
444 | 440 | liveCB.setToolTipText("Enabled animation"); |
---|
445 | 441 | liveCB.addItemListener(this); |
---|
446 | 442 | |
---|
447 | | - oe.aConstraints.gridx += 1; |
---|
448 | | - oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK), oe.aConstraints); |
---|
| 443 | + oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints); |
---|
449 | 444 | trackCB.setToolTipText("Enable tracking"); |
---|
450 | 445 | trackCB.addItemListener(this); |
---|
451 | 446 | |
---|
452 | | - oe.aConstraints.gridx += 1; |
---|
453 | | - oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints); |
---|
| 447 | + oe.toolbarPanel.add(screenfitButton = new cButton("@", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
454 | 448 | screenfitButton.setToolTipText("Screen fit"); |
---|
455 | 449 | screenfitButton.addActionListener(this); |
---|
456 | | - oe.aConstraints.gridx += 1; |
---|
| 450 | + |
---|
457 | 451 | // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints); |
---|
458 | 452 | // screenfitpointButton.addActionListener(this); |
---|
459 | 453 | // oe.aConstraints.gridx += 1; |
---|
460 | | - oe.toolbarPanel.add(snapobjectButton = new cButton(" O+ ")); //, oe.aConstraints); |
---|
| 454 | + oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
461 | 455 | snapobjectButton.addActionListener(this); |
---|
462 | 456 | snapobjectButton.setToolTipText("Snap Object"); |
---|
463 | 457 | oe.aConstraints.gridx += 1; |
---|
.. | .. |
---|
467 | 461 | oe.aConstraints.weighty = 0; |
---|
468 | 462 | oe.aConstraints.gridwidth = 1; |
---|
469 | 463 | |
---|
470 | | - oe.toolbarPanel.add(flashSelectionButton = new cButton(" ? ")); //, oe.aConstraints); |
---|
| 464 | + oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
471 | 465 | flashSelectionButton.setToolTipText("Show selection"); |
---|
472 | 466 | flashSelectionButton.addActionListener(this); |
---|
473 | 467 | |
---|
474 | | - oe.toolbarPanel.add(new cButton(" ", false)); |
---|
| 468 | + oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL)); |
---|
475 | 469 | |
---|
476 | | - oe.aConstraints.gridx += 1; |
---|
477 | | - oe.aConstraints.weighty = 0; |
---|
478 | | - oe.aConstraints.gridwidth = 1; |
---|
479 | | - |
---|
480 | | - // |
---|
481 | | - oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints); |
---|
| 470 | + oe.toolbarPanel.add(twoButton = new cButton("|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
482 | 471 | twoButton.setToolTipText("Show center view only"); |
---|
483 | 472 | twoButton.addActionListener(this); |
---|
484 | | - oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints); |
---|
| 473 | + oe.toolbarPanel.add(fourButton = new cButton("+||", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
485 | 474 | fourButton.addActionListener(this); |
---|
486 | 475 | fourButton.setToolTipText("Show left panel only"); |
---|
487 | | - oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints); |
---|
| 476 | + oe.toolbarPanel.add(sixButton = new cButton("+|+|", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
488 | 477 | sixButton.setToolTipText("2-column layout left"); |
---|
489 | 478 | sixButton.addActionListener(this); |
---|
490 | | - oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints); |
---|
| 479 | + oe.toolbarPanel.add(threeButton = new cButton("|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
491 | 480 | threeButton.setToolTipText("2-column layout right"); |
---|
492 | 481 | threeButton.addActionListener(this); |
---|
493 | | - oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints); |
---|
| 482 | + oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
494 | 483 | sevenButton.setToolTipText("3-column layout"); |
---|
495 | 484 | sevenButton.addActionListener(this); |
---|
496 | 485 | // |
---|
497 | 486 | |
---|
498 | | - oe.toolbarPanel.add(rootButton = new cButton(" o o o ")); //, oe.aConstraints); |
---|
499 | | - rootButton.setToolTipText("Edit object in new tab"); |
---|
| 487 | + oe.toolbarPanel.add(rootButton = new cButton("o o o", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 488 | + rootButton.setToolTipText("Edit selection in new tab"); |
---|
500 | 489 | rootButton.addActionListener(this); |
---|
501 | | - oe.aConstraints.gridx += 1; |
---|
502 | | - oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints); |
---|
| 490 | + |
---|
| 491 | + oe.toolbarPanel.add(closeButton = new cButton("X", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
503 | 492 | closeButton.setToolTipText("Close tab"); |
---|
504 | 493 | closeButton.addActionListener(this); |
---|
505 | 494 | //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints); |
---|
506 | 495 | //clearButton.addActionListener(this); |
---|
507 | | - oe.aConstraints.gridx += 1; |
---|
508 | 496 | |
---|
509 | | - oe.aConstraints.gridx = 1; // |
---|
510 | | - oe.treePanel.add(editButton = new cButton("+"), oe.aConstraints); |
---|
| 497 | + cGridBag commandsPanel = new cGridBag(); |
---|
| 498 | + |
---|
| 499 | + commandsPanel.add(editButton = new cButton("+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 500 | + editButton.setToolTipText("Edit selection"); |
---|
511 | 501 | editButton.addActionListener(this); |
---|
512 | | - oe.aConstraints.gridx += 1; |
---|
513 | | - oe.aConstraints.weighty = 0; |
---|
514 | | - oe.aConstraints.gridwidth = 1; |
---|
515 | 502 | |
---|
516 | | - oe.treePanel.add(uneditButton = new cButton("-"), oe.aConstraints); |
---|
| 503 | + commandsPanel.add(uneditButton = new cButton("-", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 504 | + uneditButton.setToolTipText("Unedit selection"); |
---|
517 | 505 | uneditButton.addActionListener(this); |
---|
518 | 506 | |
---|
519 | | - oe.aConstraints.gridx += 1; |
---|
520 | | - oe.aConstraints.weighty = 0; |
---|
521 | | - oe.aConstraints.gridwidth = 1; |
---|
522 | | - |
---|
523 | | - oe.treePanel.add(clearPanelButton = new cButton("C"), oe.aConstraints); |
---|
| 507 | + commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 508 | + clearPanelButton.setToolTipText("Clear edit panel"); |
---|
524 | 509 | clearPanelButton.addActionListener(this); |
---|
525 | 510 | |
---|
526 | | - oe.aConstraints.gridx += 1; |
---|
527 | | - oe.aConstraints.weighty = 0; |
---|
528 | | - oe.aConstraints.gridwidth = 1; |
---|
529 | | - |
---|
530 | | - oe.treePanel.add(allParamsButton = new cButton("A"), oe.aConstraints); |
---|
| 511 | + commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 512 | + allParamsButton.setToolTipText("All params??"); |
---|
531 | 513 | allParamsButton.addActionListener(this); |
---|
532 | 514 | |
---|
533 | | - oe.aConstraints.gridx += 1; |
---|
534 | | - oe.aConstraints.weighty = 0; |
---|
535 | | - oe.aConstraints.gridwidth = 1; |
---|
536 | | - |
---|
537 | | - oe.treePanel.add(unselectButton = new cButton("U"), oe.aConstraints); |
---|
| 515 | + commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 516 | + unselectButton.setToolTipText("Unselect"); |
---|
538 | 517 | unselectButton.addActionListener(this); |
---|
539 | 518 | |
---|
| 519 | + commandsPanel.preferredHeight = 1; |
---|
| 520 | + |
---|
| 521 | + oe.treePanel.add(commandsPanel); |
---|
| 522 | + oe.treePanel.Return(); |
---|
| 523 | + |
---|
540 | 524 | // oe.aConstraints.gridx += 1; |
---|
541 | 525 | // oe.aConstraints.weighty = 0; |
---|
542 | 526 | // oe.aConstraints.gridwidth = 1; |
---|
.. | .. |
---|
548 | 532 | // oe.treePanel.add(gcButton = new cButton("GC"), oe.aConstraints); |
---|
549 | 533 | // gcButton.addActionListener(this); |
---|
550 | 534 | |
---|
551 | | - oe.aConstraints.gridx = 0; |
---|
552 | | - oe.aConstraints.gridy += 1; |
---|
553 | | - |
---|
554 | | - //ctrlPanel.add(objList = new List(5, true)); |
---|
555 | | - oe.aConstraints.gridwidth = 100; |
---|
556 | | - // oe.aConstraints.gridheight = 100; |
---|
557 | | - oe.aConstraints.fill = GridBagConstraints.BOTH; // HORIZONTAL; |
---|
558 | | - oe.aConstraints.gridheight = 1; |
---|
559 | | - oe.aConstraints.weighty = 0.5; |
---|
560 | | - oe.aConstraints.gridx = 0; |
---|
561 | | - JScrollPane jSP; |
---|
| 535 | + cGridBag jSPPanel = new cGridBag(); |
---|
| 536 | + |
---|
| 537 | + JScrollPane jSP; |
---|
562 | 538 | //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints); |
---|
563 | | - oe.treePanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null)), oe.aConstraints); |
---|
| 539 | + jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints); |
---|
564 | 540 | ResetModel(); |
---|
565 | | - oe.aConstraints.weighty = 0.5; |
---|
566 | | - oe.aConstraints.fill = GridBagConstraints.HORIZONTAL; |
---|
567 | | - oe.aConstraints.gridy += 1; |
---|
568 | | - oe.aConstraints.gridwidth = 1; |
---|
| 541 | + |
---|
| 542 | + oe.treePanel.add(jSPPanel); |
---|
| 543 | + oe.treePanel.Return(); |
---|
569 | 544 | |
---|
570 | | - oe.aConstraints.weighty = 0; |
---|
571 | | - oe.aConstraints.gridwidth = 2; |
---|
572 | | - |
---|
573 | | - oe.treePanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0), oe.aConstraints); |
---|
| 545 | + cGridBag copyOptionsPanel = new cGridBag(); |
---|
| 546 | + |
---|
| 547 | + copyOptionsPanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints); |
---|
| 548 | + colorCB.setToolTipText("Copy color when dropped"); |
---|
574 | 549 | colorCB.addItemListener(this); |
---|
575 | | - oe.aConstraints.gridx += 2; |
---|
576 | | - oe.treePanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0), oe.aConstraints); |
---|
| 550 | + |
---|
| 551 | + copyOptionsPanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints); |
---|
| 552 | + materialCB.setToolTipText("Copy material when dropped"); |
---|
577 | 553 | materialCB.addItemListener(this); |
---|
578 | | - oe.aConstraints.gridx += 2; |
---|
579 | | - oe.treePanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0), oe.aConstraints); |
---|
| 554 | + |
---|
| 555 | + copyOptionsPanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints); |
---|
| 556 | + textureCB.setToolTipText("Copy texture when dropped"); |
---|
580 | 557 | textureCB.addItemListener(this); |
---|
581 | 558 | |
---|
582 | | - oe.aConstraints.gridx = 0; |
---|
583 | | - oe.aConstraints.gridy += 1; |
---|
| 559 | + copyOptionsPanel.preferredHeight = 1; |
---|
| 560 | + oe.treePanel.add(copyOptionsPanel); |
---|
| 561 | + oe.treePanel.Return(); |
---|
584 | 562 | |
---|
| 563 | +// mainPanel.setDividerLocation(0.5); //1.0); |
---|
| 564 | +// mainPanel.setResizeWeight(0.5); |
---|
| 565 | + |
---|
585 | 566 | //jList.addListSelectionListener(this); |
---|
586 | 567 | oe.jTree.addTreeSelectionListener(this); |
---|
587 | 568 | //jTree.setRootVisible(false); |
---|
.. | .. |
---|
604 | 585 | oe.toolbarPanel.add(radioPanel); //, oe.aConstraints); |
---|
605 | 586 | } |
---|
606 | 587 | |
---|
607 | | - void AddOptions(JPanel panel, GridBagConstraints constraints) |
---|
| 588 | + void AddOptions(cGridBag panel) //, GridBagConstraints constraints) |
---|
608 | 589 | { |
---|
609 | | - constraints.gridx = 0; |
---|
610 | | - constraints.gridy = 0; |
---|
611 | | - panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), constraints); |
---|
| 590 | + //constraints.gridx = 0; |
---|
| 591 | + //constraints.gridy = 0; |
---|
| 592 | + panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); |
---|
612 | 593 | fastCB.setToolTipText("Fast mode"); |
---|
613 | 594 | fastCB.addItemListener(this); |
---|
614 | | - constraints.gridy += 1; |
---|
615 | | - panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), constraints); |
---|
| 595 | + //constraints.gridy += 1; |
---|
| 596 | + panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); |
---|
616 | 597 | supportCB.setToolTipText("Enabled rigging"); |
---|
617 | 598 | supportCB.addItemListener(this); |
---|
618 | 599 | |
---|
.. | .. |
---|
620 | 601 | // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); |
---|
621 | 602 | // localCB.addItemListener(this); |
---|
622 | 603 | |
---|
623 | | - constraints.gridy += 1; |
---|
624 | | - panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), constraints); |
---|
| 604 | + //constraints.gridy += 1; |
---|
| 605 | + panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); |
---|
625 | 606 | crowdCB.setToolTipText("Used for crowds"); |
---|
626 | 607 | crowdCB.addItemListener(this); |
---|
627 | 608 | |
---|
628 | | - constraints.gridy += 1; |
---|
629 | | - panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), constraints); |
---|
| 609 | + //constraints.gridy += 1; |
---|
| 610 | + panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); |
---|
630 | 611 | smoothCB.setToolTipText("Snapping delay"); |
---|
631 | 612 | smoothCB.addItemListener(this); |
---|
632 | 613 | |
---|
633 | | - constraints.gridy += 1; |
---|
634 | | - panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), constraints); |
---|
| 614 | + //constraints.gridy += 1; |
---|
| 615 | + panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); |
---|
635 | 616 | slowCB.setToolTipText("Smooth interpolation"); |
---|
636 | 617 | slowCB.addItemListener(this); |
---|
637 | | - constraints.gridy += 1; |
---|
638 | | - panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE), constraints); |
---|
| 618 | + //constraints.gridy += 1; |
---|
| 619 | + panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints); |
---|
639 | 620 | boxCB.setToolTipText("Display bounding boxes"); |
---|
640 | 621 | boxCB.addItemListener(this); |
---|
641 | | - constraints.gridy += 1; |
---|
642 | | - panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE), constraints); |
---|
| 622 | + //constraints.gridy += 1; |
---|
| 623 | + panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); |
---|
643 | 624 | zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); |
---|
644 | 625 | zoomBoxCB.addItemListener(this); |
---|
645 | 626 | |
---|
.. | .. |
---|
650 | 631 | if (false) |
---|
651 | 632 | { |
---|
652 | 633 | // handled in scripts |
---|
653 | | - constraints.gridy += 1; |
---|
654 | | - panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA), constraints); |
---|
| 634 | + //constraints.gridy += 1; |
---|
| 635 | + panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints); |
---|
655 | 636 | speakerCameraCB.addItemListener(this); |
---|
656 | 637 | |
---|
657 | | - constraints.gridy += 1; |
---|
658 | | - panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS), constraints); |
---|
| 638 | + //constraints.gridy += 1; |
---|
| 639 | + panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints); |
---|
659 | 640 | speakerFocusCB.addItemListener(this); |
---|
660 | 641 | |
---|
661 | | - constraints.gridy += 1; |
---|
662 | | - panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS), constraints); |
---|
| 642 | + //constraints.gridy += 1; |
---|
| 643 | + panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints); |
---|
663 | 644 | smoothfocusCB.addItemListener(this); |
---|
664 | 645 | } |
---|
665 | 646 | |
---|
.. | .. |
---|
667 | 648 | //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints); |
---|
668 | 649 | // debugCB.addItemListener(this); |
---|
669 | 650 | |
---|
670 | | - constraints.gridy += 1; |
---|
671 | | - panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL), constraints); |
---|
| 651 | + //constraints.gridy += 1; |
---|
| 652 | + panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints); |
---|
672 | 653 | oeilCB.addItemListener(this); |
---|
673 | 654 | |
---|
674 | | - constraints.gridy += 1; |
---|
675 | | - panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT), constraints); |
---|
| 655 | + //constraints.gridy += 1; |
---|
| 656 | + panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); |
---|
676 | 657 | lookAtCB.setToolTipText("Look-at target"); |
---|
677 | 658 | lookAtCB.addItemListener(this); |
---|
| 659 | + |
---|
| 660 | + cGridBag fill = new cGridBag(); |
---|
| 661 | + |
---|
| 662 | + fill.preferredHeight = 200; |
---|
| 663 | + |
---|
| 664 | + panel.add(fill); |
---|
678 | 665 | |
---|
679 | 666 | } |
---|
680 | 667 | |
---|
.. | .. |
---|
2720 | 2707 | // centralPanel.setVisible(true); |
---|
2721 | 2708 | // XYZPanel.setVisible(false); |
---|
2722 | 2709 | bigThree.ClearUI(); |
---|
2723 | | - bigThree.addComponent(centralPanel); |
---|
| 2710 | + bigThree.add(centralPanel); |
---|
2724 | 2711 | bigThree.FlushUI(); |
---|
2725 | 2712 | } else |
---|
2726 | 2713 | if (source == threeButton) |
---|
.. | .. |
---|
2755 | 2742 | // centralPanel.setVisible(true); |
---|
2756 | 2743 | // XYZPanel.setVisible(true); |
---|
2757 | 2744 | bigThree.ClearUI(); |
---|
2758 | | - bigThree.addComponent(centralPanel); |
---|
2759 | | - bigThree.addComponent(XYZPanel); |
---|
| 2745 | + bigThree.add(centralPanel); |
---|
| 2746 | + bigThree.add(XYZPanel); |
---|
2760 | 2747 | bigThree.FlushUI(); |
---|
2761 | 2748 | } else |
---|
2762 | 2749 | if (source == fourButton) |
---|
.. | .. |
---|
2791 | 2778 | // centralPanel.setVisible(false); |
---|
2792 | 2779 | // XYZPanel.setVisible(false); |
---|
2793 | 2780 | bigThree.ClearUI(); |
---|
2794 | | - bigThree.addComponent(scenePanel); |
---|
| 2781 | + bigThree.add(scenePanel); |
---|
2795 | 2782 | bigThree.FlushUI(); |
---|
2796 | 2783 | } else |
---|
2797 | 2784 | if (source == sixButton) |
---|
.. | .. |
---|
2826 | 2813 | // centralPanel.setVisible(true); |
---|
2827 | 2814 | // XYZPanel.setVisible(false); |
---|
2828 | 2815 | bigThree.ClearUI(); |
---|
2829 | | - bigThree.addComponent(scenePanel); |
---|
2830 | | - bigThree.addComponent(centralPanel); |
---|
| 2816 | + bigThree.add(scenePanel); |
---|
| 2817 | + bigThree.add(centralPanel); |
---|
2831 | 2818 | bigThree.FlushUI(); |
---|
2832 | 2819 | } else |
---|
2833 | 2820 | if (source == sevenButton) |
---|
.. | .. |
---|
2862 | 2849 | // centralPanel.setVisible(true); |
---|
2863 | 2850 | // XYZPanel.setVisible(true); |
---|
2864 | 2851 | bigThree.ClearUI(); |
---|
2865 | | - bigThree.addComponent(scenePanel); |
---|
2866 | | - bigThree.addComponent(centralPanel); |
---|
2867 | | - bigThree.addComponent(XYZPanel); |
---|
| 2852 | + bigThree.add(scenePanel); |
---|
| 2853 | + bigThree.add(centralPanel); |
---|
| 2854 | + bigThree.add(XYZPanel); |
---|
2868 | 2855 | bigThree.FlushUI(); |
---|
2869 | 2856 | } else |
---|
2870 | 2857 | if (source == rootButton) |
---|
.. | .. |
---|
2916 | 2903 | |
---|
2917 | 2904 | child.editWindow = null; // ??????????? |
---|
2918 | 2905 | } |
---|
2919 | | - objEditor.ctrlPanel.revalidate(); |
---|
| 2906 | + objEditor.ctrlPanel.validate(); |
---|
2920 | 2907 | //objEditor.jTree.clearSelection(); |
---|
2921 | 2908 | //objEditor.ResetSliders(); |
---|
2922 | 2909 | refreshContents(true); |
---|
.. | .. |
---|
4124 | 4111 | System.err.println("info : " + child.GetPath()); |
---|
4125 | 4112 | } |
---|
4126 | 4113 | } |
---|
4127 | | - else |
---|
4128 | | - { |
---|
4129 | | - objEditor.SetMaterial(group); // .GetMaterial()); |
---|
4130 | | - objEditor.AddInfo(group, this, true); // .GetMaterial()); |
---|
4131 | | - System.err.println("info : " + group.GetPath()); |
---|
4132 | | - } |
---|
| 4114 | +// else |
---|
| 4115 | +// { |
---|
| 4116 | +// objEditor.SetMaterial(group); // .GetMaterial()); |
---|
| 4117 | +// objEditor.AddInfo(group, this, true); // .GetMaterial()); |
---|
| 4118 | +// System.err.println("info : " + group.GetPath()); |
---|
| 4119 | +// } |
---|
4133 | 4120 | |
---|
4134 | 4121 | objEditor.SetText(); // jan 2014 |
---|
4135 | 4122 | |
---|