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.
#200201040331 jdk1.4.0-rc-b90 Attached exception is thrown and editor cannot be closed. Switch Tabbed UI to Tabs in one row (Tools, Options, Ide configuration System, System settings, Multi-Tab style). Open two files in editor. Try close editor via 'x'. This is probably a regression caused by fix of issue #16033. So marking as P2.
Created attachment 3977 [details] stacktrace
Fixed in [release33]. Fix: core/../windows/frames/SplittedContainerImpl.java [1.31.6.5] Note: It seems, it was just more robust check needed in the old code, which failed after using the new API.
The exception is fixed, but popip menu cannot be invoked over the tab now. Reopenning
please don't forget to mark jdk 1.4 only bugs with JDK_1.4 keyword
The second problem is worse. Jdk1.4 uses ineternal components for drawing the scrollable tab layout, so our mouse listener on JTabbedPane is out in that case. I try to find if there is some solution to by pass it. Not decided yet if it is a jdk bug.
Peter, is it possible to disallow those alternative tabs altogether in JDK 1.4?
Trung, if you mean to disable the One scroll row option at all, of course it is, it was 3.3.1 in that state already (one/two weeks ago). If you mean just that for that option wouldn't be used those internal components, no. The jdk1.4 tabbedPaneUI uses them for drawing that style internally. But I try to solve it by little hack.
Created attachment 4006 [details] Possible patch, but could be risky.
I provided patch which would work with current state of jdk1.4 impl. But I think the problem is on jdk side. I submitted two bugs according this issue. There seems to be not only problem with listening on JTabbedPane when SCROLL_TAB_LAYOUT policy is set (#4620537), but also with translating coordinates of tabs when JTabbedPane uses BOTTOM_PLACEMENT (what is default in IDE) with combination of SCROLL_TAB_LAYOUT policy (#4620540). I'll wait a bit how jdk team respond to those bugs. To the patch: It's risky because if it would be applied and then the jdk bugs fixed it could lead to much more problems, like two popups on one click, or showing popup on different position then clicked, e.g. even outside the TC container. Therefore I'm not very willing to use the patch, and rather would expect those bugs will be fixed the way JTabbedPane will work same way under both layout policies.
Jdk team accepted those bugs, will be fixed probably in some patch of jdk later, so I'm closing this as wontfix.
Resolved for 3.4.x or earlier, no new info since then -> verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.