-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.1
-
None
-
generic
-
generic
There is not initialized htmlViews field in BasicTabbePaneUI when the UI is installed to non-empty JTabbedPane, i.e. it contains already some components. Then the htmlViews Vector is empty, consequently when removing the component from the JTabbedPaen, ContainerHandler listens on the container events and tries to remove the component from htmlViews too.
It leads to ArrayOutOfBoundsException, the returned component index is -1, what is not chceked in the row 3136 (BasicTabbedPaneUI).
I don't know what is the exact intention, wheteher there should be added the checkl or the components should be added to the htmlViews when the UI is set to JTabbedPane.
I hope test case is not neceessary, it should be clear from the code.
It leads to ArrayOutOfBoundsException, the returned component index is -1, what is not chceked in the row 3136 (BasicTabbedPaneUI).
I don't know what is the exact intention, wheteher there should be added the checkl or the components should be added to the htmlViews when the UI is set to JTabbedPane.
I hope test case is not neceessary, it should be clear from the code.
- duplicates
-
JDK-4668593 Removing html enabled tabs causes exception
- Resolved