Just wondering what focus means in java code, because I have seen onWindowFocusChanged, addFocussables, findFocus…
If I have a scrollable list and I scrolled it down, the first item will have focus false? or it means other thing?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Focus means you have selected the particular GUI element. For example when you select a window that window gains focus, when you select another window the first window loses focus…. It’s the same for JTextField, JTextArea, etc.