• Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus Problem  RSS feed

 
Thushara BK
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing the application using java Swings.Its giving lots of focus problem, How to handle a focus in swings.Give me some suggestions.
 
Stephen Boston
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Thushara BK:
I am developing the application using java Swings.Its giving lots of focus problem, How to handle a focus in swings.Give me some suggestions.


Take look at requestFocus(). From what I've seen, and I'm sure someone will jump in and correct me if I'm wrong , all of the components have this method.

hth.

Steve
 
Mark Van Tuyl
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requestFocus() method is contained in the javax.swing.JComponent class. All components that are subclasses of javax.swing.JComponent can use this method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!