a newcomer ask a simple question

hi ,i am a chinese ,and i just began to learn java ,my question is that:

is there a method which could check whether the GUI widget s such as button ,textfield ..get Focus ?if there is ,pleast tell me it .

now i am doing some practice which about keyEvent ,and i need to know that .

thanks very much !

[326 byte] By [starry_nighta] at [2007-10-2 18:22:17]
# 1
to check whether a component currently has the focusisFocusOwner()this link might be handy for you http://java.sun.com/docs/books/tutorial/uiswing/TOC.html
Michael_Dunna at 2007-7-13 19:42:56 > top of Java-index,Desktop,Core GUI APIs...
# 2
i have made it ,thank you ,iam annoyed by this question the whole afternoon,anyhow ,thank you very much!
starry_nighta at 2007-7-13 19:42:56 > top of Java-index,Desktop,Core GUI APIs...