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 11668 - On JDK1.4 it is impossible to work with more than 1 file in the Editor (JTabbedPane issue)
Summary: On JDK1.4 it is impossible to work with more than 1 file in the Editor (JTabb...
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-23 16:03 UTC by Jiri Skrivanek
Modified: 2008-12-22 18:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (2.32 KB, text/plain)
2001-04-23 16:03 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2001-04-23 16:03:04 UTC
Tested in build release32_20010422-1931, JDK1.4.0-beta-b60.

- open at least 2 files in the Editor
- try to close the Editor window
- you get java.lang.IllegalArgumentException: component not found in tabbed
pane. (see att.)
- then if you try to continue using editor you get several exceptions and editor
is unusable
Comment 1 Jiri Skrivanek 2001-04-23 16:03:51 UTC
Created attachment 1214 [details]
Stack trace
Comment 2 Jan Lahoda 2001-04-23 16:18:28 UTC
From the stack trace, it looks much more as either windowing system problem or
JDK problem. I will reassign it to the core.
Comment 3 mslama 2001-04-30 16:04:33 UTC
It seems it is more general problem with SplitContainerImpl (JTabbedPane??): It
behaves in the same way when I am closing tabs in Explorer (but not always).
Comment 4 mslama 2001-05-02 17:01:13 UTC
Fixed in org.netbeans.core.windows.frames.SplitContainerImpl - method
componentRemoved. Call of method JTabbedPane.remove was performed with incorrect
parameter - component not already present in JTabbedPane was removed.

In JDK 1.4 method JTabbedPane.remove fires exception when called on component
not present in tab. In JDK 1.3 no exception was fired. Change of behaviour
between 1.3 and 1.4. Anyway bug was in SplitContainerImpl - removing component
not present in tab is really not necessary.

Fixed in main trunk tested with JDK 1.3.1-rc2-b23 and JDK 1.4.0-beta-b62
Comment 5 Jan Chalupa 2001-05-05 20:41:11 UTC
Target milestone -> 3.3
Removing the OPEN_IN_3.2 keyword.
Comment 6 mslama 2001-05-21 16:40:02 UTC
Merged to merlin branch.
Comment 7 Jiri Skrivanek 2001-05-22 09:22:55 UTC
Verified in build 6 from merlin branch.
Comment 8 Quality Engineering 2003-07-01 16:12:44 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.