Closed GoogleCodeExporter closed 9 years ago
Changed display value from "" to " " when there is no selected item. Also added
check for existence of items
before trying to show popup. You'll find the latest Mac Widgets for Java build
here:
http://www.macwidgetsforjava.com/downloads/latest/mac_widgets.jar
Original comment by kenneth....@gmail.com
on 24 Aug 2009 at 11:17
Did the trick.
However, adding new Objects to the model will not be drawn correctly in the
drop-down list.
The drop-down list does not update its height, resulting in the items getting
smaller (height).
...
content.add(HudWidgetFactory.createHudComboBox(model);
...
@Action void add() {
model.addElement("new element");
}
...
see attached image.
Original comment by frode...@gmail.com
on 24 Aug 2009 at 1:52
Attachments:
Give it another try -- should be fixed now.
Original comment by kenneth....@gmail.com
on 24 Aug 2009 at 7:04
[deleted comment]
I found another issue.
Adding a new object to a empty DefaultComboboxModel without selecting the newly
added object will result in a ArrayIndexOutOfBoundsException when clicking the
JCombobox instance.
I attached code that shows how the error occurs.
Original comment by frode...@gmail.com
on 24 Aug 2009 at 10:19
Attachments:
OK, should be fixed.
Original comment by kenneth....@gmail.com
on 24 Aug 2009 at 11:02
Yes, it is fixed now!
Original comment by frode...@gmail.com
on 24 Aug 2009 at 11:28
Original issue reported on code.google.com by
frode...@gmail.com
on 24 Aug 2009 at 1:56Attachments: