• Post Reply Bookmark Topic Watch Topic
  • New Topic

button focused

 
feroz muhamed
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me,which method can i use to know the currently focused compenet in swing?
 
Krishna Mohan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Component.isFocusOwner()
Returns true if this Component is the focus owner.
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
java.awt.KeyboardFocusManager.getFocusOwner()
java.awt.KeyboardFocusManager.getGlobalFocusOwner()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!