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.
Summary: | [2003-10-26] TopComponent getParent() returns null even it is in the Tabbed container | ||
---|---|---|---|
Product: | platform | Reporter: | Peter Zavadsky <pzavadsky> |
Component: | Window System | Assignee: | David Simonek <dsimonek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jskrivanek |
Priority: | P1 | Keywords: | T9Y |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 36145 |
Description
Peter Zavadsky
2003-09-17 14:30:22 UTC
*** Issue 36024 has been marked as a duplicate of this issue. *** date p[ostponed to the end of october. If this is problem please let me know. fixed in brach. But repaint problems of editor toolbar remains it seems, it has to be their wrong painting. cvs log: Removing core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/ComponentContainer.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/Attic/ComponentContainer.java,v <-- ComponentContainer.java new revision: delete; previous revision: 1.1.2.4 done Checking in core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/ScrollableTabsUI.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/Attic/ScrollableTabsUI.java,v <-- ScrollableTabsUI.java new revision: 1.1.2.24; previous revision: 1.1.2.23 done RCS file: /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/Attic/StackLayout.java,v done Checking in core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/StackLayout.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/Attic/StackLayout.java,v <-- StackLayout.java new revision: 1.1.2.1; previous revision: 1.1 done Checking in core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/TabControl.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/Attic/TabControl.java,v <-- TabControl.java new revision: 1.1.2.10; previous revision: 1.1.2.9 done Checking in core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/TabbedContainer.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/tabcontrol/Attic/TabbedContainer.java,v <-- TabbedContainer.java new revision: 1.1.2.22; previous revision: 1.1.2.21 done cvs diff: StackLayout.java is a new entry, no comparison available I added some logging to StackLayout to try to solve the problem that the editor disappears whenever I type or do almost anything (it really isn't there, clicking does nothing). ShowComponent is getting called for every component in the tabbed pane during startup; I added logging to the StackLayout and got the log below. TabControl offers the ability to add components in batches to avoid exactly this type of thing - I recommend you use it. If you're determined not to take advantage of it, you should at least be able to call Thread.holdsLock(getTreeLock()) and avoid doing any validation, layout or painting by grabbing the AWT tree lock before adding a bunch of components en banc. Loading of window system takes 641 ms ShowComponent: org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab[Project De fault,0,0,0x0,invalid,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,bor der=,flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.modules.java.JavaEditor$JavaEditorComponent[StackLayout,0, 0,0x0,invalid,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,border=,fla gs=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.core.NbSheet[No Properties,0,0,0x0,invalid,layout=java.awt .BorderLayout,alignmentX=null,alignmentY=null,border=,flags=256,maximumSize=,minimumSi ze=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.core.execution.ExecutionViewAction$ExecutionView[Execution ,0,0,0x0,invalid,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,border=, flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.modules.projects.CurrentProjectNode$ProjectsTab[Project De fault,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=n ull,border=,flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.modules.java.JavaEditor$JavaEditorComponent[StackLayout,0, 0,0x0,invalid,hidden,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,bord er=,flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.core.NbSheet[No Properties,0,0,0x0,invalid,hidden,layout=j ava.awt.BorderLayout,alignmentX=null,alignmentY=null,border=,flags=256,maximumSize=,mi nimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.core.execution.ExecutionViewAction$ExecutionView[Execution ,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,b order=,flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: comp bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0] ShowComponent: org.netbeans.modules.java.JavaEditor$JavaEditorComponent[WindowsScrolla bleTabsUI,0,0,805x676,invalid,hidden,layout=java.awt.BorderLayout,alignmentX=null,alig nmentY=null,border=,flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=805,height=676] ShowComponent: org.netbeans.modules.java.JavaEditor$JavaEditorComponent[WindowsScrolla bleTabsUI,0,0,805x676,layout=java.awt.BorderLayout,alignmentX=null,alignmentY=null,bor der=,flags=256,maximumSize=,minimumSize=,preferredSize=] comp bounds: java.awt.Rectangle[x=0,y=0,width=805,height=676] FYI, what is broken in StackLayout is that layoutContainer keeps getting called with visibleComponent set to null. The meta-question is why simply typing in the editor should trigger a call to layoutContainer. verified |