Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 22526
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!