File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes swing(JComboBox)urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing(JComboBox)urgent" Watch "swing(JComboBox)urgent" New topic


Venkatachalam Palanisamy

Joined: Aug 04, 2000
Posts: 12
How to set blinking cursor to JCombobox while
clicking the JButton?
what are methods available for this?

I tried with focus methods which is available in the API.
But i couldn't. Using "TAB" key only i can change the focus of the component.But i want to focus the component by clicking the JButton.
kindly help me.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I am not sure if I follow your qstn, but I think
that adding an ActionListner to the JButton is one
way to go. The ActionListner should then Focus the
Am I close?
- satya

Take a Minute, Donate an Hour, Change a Life
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
I am not sure if your comboBox is editable or not but the following snippet should work.

Venkatachalam Palanisamy

Joined: Aug 04, 2000
Posts: 12
Hi manfred!
Thnks for ur kind reply
I agree. Here's the link:
subject: swing(JComboBox)urgent
It's not a secret anymore!