View Full Version : ComboBox Empty Text

31 Jul 2009, 12:53 PM
Hi all - I aplogize if this is a noob question, but I've been trying desperately to get the ComboBox widget to behave like a normal ComboBox. By that, I mean that I would like it to expand when I click anywhere within the ComboBox widget.

To do this, I created a ComboBox with editing disabled and with an empty text message. What I am observing is that the ComboBox expands on the first click when I click on the 'down' arrow on the right-hand side or on any white space within the ComboBox.

This is where the problem is - When I click on the empty text, the empty text disappears but does not expand the ComboBox. I must click AGAIN to make the ComboBox expand.

ComboBox<Color> combo = new ComboBox<Color>();
combo.setEmptyText("Select a Color...");
fp.add(combo, new FormData("-20"));

Does anybody have any clues as to what could be going on? Thanks so much in advance!

6 Aug 2009, 1:27 AM
if i look at this examples there is not this "second" click issue.

maybe you post a full working example to show the effect. then its more easy to replay the issue and we see also sideeffects in your code.