What does focus mean?

Just wondering what the focus means in Java code, because I saw onWindowFocusChanged, addFocussables, findFocus ...

If I have a scrollable list and I scroll it down, will the first element have focus false? or does that mean another thing?

thank

+3
source share
3 answers

Focus means that you have selected a specific GUI element. For example, when you select a window in which the window receives focus, when you select another window, the first window loses focus .... The same goes for JTextField, JTextArea, etc.

+4
source

The focus definition here on StackOverflow is as follows:

Focus points to the graphical user interface component that is currently selected to receive input.

, . , JCheckBox, ( ), . , . . :

- , . ; , JButton . .

+2

The current GUI element that is "active" has focus. For example, when you have several input windows, only one can have focus and receive keyboard input. See here the Android GUI document http://developer.android.com/guide/topics/ui/ui-events.html

0
source

All Articles