Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Gaining Focus...  RSS feed

 
Sathish Babu Adluru Subas
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi javacs,
My ques is that how can i gain the focus to the particular JTextField or JButton when my JFrame is opened? help me please.
 
paul wheaton
Trailboss
Posts: 22258
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those things all eventually inherit Component which has the requestFocus() method.
That's your ticket.
 
Sathish Babu Adluru Subas
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx Mr.Wheaton.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!