christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

HudComboBox Dropdown Error #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a ComboBox to a HudWindow with a ComboBoxModel

I'm using an array of Enums in my ComboBoxModel by calling EnumType.values() if 
that makes 
any difference.

What is the expected output? What do you see instead?
I get the expected UI to render correctly, however when I go select another 
value, I receive:

java.lang.ArrayIndexOutOfBoundsException: No such child: -1
    at java.awt.Container.getComponent(Container.java:280)
    at 
com.explodingpixels.widgets.plaf.EPComboPopup.placePopupOnScreen(EPComboPopup.ja
va:109
)
    at com.explodingpixels.widgets.plaf.EPComboPopup.show(EPComboPopup.java:151)
    at com.explodingpixels.widgets.plaf.EPComboPopup.togglePopup(EPComboPopup.java:65)
    at com.explodingpixels.widgets.plaf.EPComboPopup.access$200(EPComboPopup.java:31)
    at 
com.explodingpixels.widgets.plaf.EPComboPopup$2.mousePressed(EPComboPopup.java:1
81)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
    at java.awt.Component.processMouseEvent(Component.java:5599)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5367)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4068)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3933)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    at java.awt.Container.dispatchEventImpl(Container.java:2054)
    at java.awt.Window.dispatchEventImpl(Window.java:1801)
    at java.awt.Component.dispatchEvent(Component.java:3903)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180)
    at java.awt.Dialog$1.run(Dialog.java:535)
    at java.awt.Dialog$2.run(Dialog.java:565)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:563)
    at java.awt.Component.show(Component.java:1302)
    at java.awt.Component.setVisible(Component.java:1255)

What version of the product are you using? On what operating system?
The Latest.  Mac.

Original issue reported on code.google.com by jbhawe...@gmail.com on 13 Apr 2009 at 11:04

GoogleCodeExporter commented 8 years ago
This is probably related or a duplicate of issue 69 -- I'll leave it open until 
I verify that this is the case.

Original comment by kenneth....@gmail.com on 14 Apr 2009 at 2:53

GoogleCodeExporter commented 8 years ago
Can you verify that the latest developer build (see link below) fixes this?

http://www.macwidgetsforjava.com/downloads/latest/mac_widgets.jar

Original comment by kenneth....@gmail.com on 18 Nov 2009 at 12:18