ComboBox: keep the pull down?

M

minjie

Hello,
Is there a method to keep the pull down for a ComboBox, i.e., the user
does not have to click on the ComboBox in order to pull down the list?
Thanks.
 
A

Andrey Kuznetsov

Is there a method to keep the pull down for a ComboBox, i.e., the user
does not have to click on the ComboBox in order to pull down the list?

you probably need JList.
 
M

minjie

Roedy said:
see http://mindprod.com/jgloss/jlist.html. it is like a JComboxBox
that stays open. You can put it is a JScrollpane it if gets too big.

Hi Guys, thank you all very much. A user requested to have that
ComboBox open by default, but reduce it when he wants to. I guess it's
not doable. Looks like I have to either use a JList to keep it open all
the time, or keep the ComboBox and have the user click on it to open
the list.
 
C

Carl

Sorry, from your initial post I got the impression that you were not
aware of the JList component.

If you are sure you only want to modify the state of a JComboBox you
should have a look at the setPopupVisible(boolean) method of the
JComboBox.

Carl.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,079
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top