Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing(JComboBox)urgent

 
Venkatachalam Palanisamy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am not sure if your comboBox is editable or not but the following snippet should work.

Regards,
Manfred.
 
Venkatachalam Palanisamy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi manfred!
Thnks for ur kind reply
venki
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic