This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 21921
Collapse All | Expand All

(-)org/netbeans/core/windows/layers/ModeData.java (-5 / +13 lines)
Lines 549-559 Link Here
549
            if (mc.descriptionBundle != null) {
549
            if (mc.descriptionBundle != null) {
550
                mi.setDescriptionBundle(mc.descriptionBundle);
550
                mi.setDescriptionBundle(mc.descriptionBundle);
551
            }
551
            }
552
            if (mc.relativeBounds != null) {
552
553
                mi.setRelativeBounds(mc.relativeBounds);
553
            // #21921: Has to run in AWT thread since accessing GUI.
554
            } else if (mc.bounds != null) {
554
            SwingUtilities.invokeLater(new Runnable() {
555
                mi.setBounds(mc.bounds);
555
                public void run() {
556
            }
556
                    Rectangle bounds;
557
                    if((bounds = mc.relativeBounds) != null) {
558
                        mi.setRelativeBounds(bounds);
559
                    } else if((bounds = mc.bounds) != null) {
560
                        mi.setBounds(bounds);
561
                    }
562
                }
563
            });
564
            
557
            if (mc.frameType != null) {
565
            if (mc.frameType != null) {
558
                //Convert frame type
566
                //Convert frame type
559
                WindowManagerImpl wmi = WindowManagerImpl.getDefault();
567
                WindowManagerImpl wmi = WindowManagerImpl.getDefault();

Return to bug 21921