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.

Bug 21771 - JInternalFrame.makeComponentVisible() doesn't work
Summary: JInternalFrame.makeComponentVisible() doesn't work
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-21 11:13 UTC by Jiri Skrivanek
Modified: 2011-02-17 09:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2002-03-21 11:13:19 UTC
It is because JInternalFrame doesn't inherit from Window.
Suggested solutions:

a) add following at line 153 in DefaultVisualizer:
	    if(internalFrame && compOper instanceof JInternalFrameOperator) {
                ((JInternalFrameOperator)compOper).activate();
            }

b) modify ComponentOperator.getContainers() to include itself (JInternalFrame)
to returned array
Comment 1 Alexandre Iline 2002-03-26 07:23:13 UTC
diff -r1.1 DefaultVisualizer.java
152a153,155
>             if(internalFrame && compOper 
instanceof JInternalFrameOperator) {
>                 
initInternalFrame((JInternalFrameOperator)compOper);
>             }

Comment 2 Jiri Skrivanek 2002-03-26 08:19:42 UTC
Verified.