Link to home
Start Free TrialLog in
Avatar of serdarulutas
serdarulutas

asked on

How to open/display JComboBox programmatically..

Hello,

I want to open a JCombox in runtime, if users presses Shift+F1. The necessary coding for key listeners is done. However I dont know how to open the combobox from the code..

Do you know whether it is possible or not?


Thanks for the answers..
Avatar of zzynx
zzynx
Flag of Belgium image

call showPopup()
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of serdarulutas
serdarulutas

ASKER

Thanks.
:-)
Thanks for accepting.

Don't find that CEHJ's comment deserves any points.
Since you said that
>> The necessary coding for key listeners is done
it doesn't do anything more than just repeating what I posted 7 minutes before.

What do you say CEHJ?
KeyListener is, if not deprecated, obsolescent. My code shows how to do it with Swing
>> KeyListener is, if not deprecated, obsolescent.
Who says that?
>> My code shows how to do it with Swing
That was not asked

But OK..........

>>Who says that?

KeyListener is AWT legacy - and no - i'm not going to scour the web for supporting quotes ;-)