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 99691 - TabbedPaneFactory Error Over Mouse on setMouseOverCloseButtonIndex
Summary: TabbedPaneFactory Error Over Mouse on setMouseOverCloseButtonIndex
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 14:45 UTC by Geertjan Wielenga
Modified: 2008-12-22 11:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2007-04-02 14:45:49 UTC
In my JDIC web browser, where I'm using the new TabbedPaneFactory functionality,
when the mouse moves over the X (close icon), the following is the error message
that appears (but ONLY when I move the mouse over the X):

java.lang.ClassCastException: org.jdesktop.jdic.browser.WebBrowser cannot be
cast to javax.swing.JComponent
   at
org.openide.awt.CloseButtonTabbedPane.setMouseOverCloseButtonIndex(CloseButtonTabbedPane.java:303)
   at
org.openide.awt.CloseButtonTabbedPane.access$900(CloseButtonTabbedPane.java:54)
   at
org.openide.awt.CloseButtonTabbedPane$CloseButtonListener.eventDispatched(CloseButtonTabbedPane.java:451)
   at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
   at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
   at java.awt.Component.dispatchEventImpl(Component.java:4308)
   at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
   at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
   at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Geertjan Wielenga 2007-04-02 14:46:47 UTC
Stan Aubrecht wants this assigned to him.
Comment 2 Stanislav Aubrecht 2007-04-02 14:54:48 UTC
fixed in trunk

/cvs/openide/awt/src/org/openide/awt/CloseButtonTabbedPane.java,v  <-- 
CloseButtonTabbedPane.java
new revision: 1.2; previous revision: 1.1