Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does focus means?

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

like image 835
R-Roadster Avatar asked Apr 27 '12 06:04

R-Roadster


1 Answers

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.

like image 149
Thihara Avatar answered Sep 30 '22 02:09

Thihara