aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing(JComboBox)urgent" Watch "swing(JComboBox)urgent" New topic
Author

swing(JComboBox)urgent

Venkatachalam Palanisamy
Greenhorn

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.
venkat.
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
JComboBox.
Am I close?
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Manfred Leonhardt
Ranch Hand

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

Regards,
Manfred.
Venkatachalam Palanisamy
Greenhorn

Joined: Aug 04, 2000
Posts: 12
Hi manfred!
Thnks for ur kind reply
venki
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: swing(JComboBox)urgent