-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.1
-
x86
-
windows_xp
###@###.### 2002-04-03
J2SE Version (please include all output from java -version flag):
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b06)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b06, mixed mode)
Does this problem occur on J2SE 1.3 or 1.4? Yes / No (pick one)
No
Operating System Configuration Information (be specific):
Windows XP
Bug Description:
An exception occurs when removing a component from JTabbedPane.
It occurs in an application that does not use a page title in html format.
You may reproduce the same exception by setting a page title in html format.
Output:
>java HopperRemovePanelFromTabbedPane
Apr 3, 2002 10:41:36 AM java.util.prefs.FileSystemPreferences$3 run
WARNING: Could not create system preferences directory. System preferences are unusable.
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
at java.util.Vector.removeElementAt(Vector.java:525)
at javax.swing.plaf.basic.BasicTabbedPaneUI$ContainerHandler.componentRemoved(BasicTabbedPaneUI.java:3137)
at java.awt.Container.processContainerEvent(Container.java:1553)
at java.awt.Container.processEvent(Container.java:1522)
at java.awt.Component.dispatchEventImpl(Component.java:3585)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3426)
at java.awt.Container.remove(Container.java:703)
at javax.swing.JTabbedPane.removeTabAt(JTabbedPane.java:803)
at javax.swing.JTabbedPane.remove(JTabbedPane.java:826)
at HopperRemovePanelFromTabbedPane.removeButton_action_actionPerformed(HopperRemovePanelFromTabbedPane.java:73)
at HopperRemovePanelFromTabbedPane_Abstract$removeButton_ActionAdapter.actionPerformed(HopperRemovePanelFromTabbedPane_Abstract.java:365)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
at java.awt.Component.processMouseEvent(Component.java:5080)
at java.awt.Component.processEvent(Component.java:4877)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3585)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3426)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3371)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3086)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3016)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1569)
at java.awt.Component.dispatchEvent(Component.java:3426)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Steps to Reproduce (be specific):
Compile the two source codes below
HopperRemovePanelFromTabbedPane.java
HopperRemovePanelFromTabbedPane_Abstract.java
and click on the push button to remove the page.
- duplicates
-
JDK-4668593 Removing html enabled tabs causes exception
-
- Resolved
-