focus : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

focus
the most recently clicked window or component has the focus of the user’s attention. When a button in a frame has focus, the frame also has focus. Keystrokes are directed to the component with the focus.

Tips

Sample Code

Here is how to write a simple Custom FocusTraversalPolicy in

Enabing Tab and Shift-Tab

Focus Box

Swing paints a thin box on a button if it has focus. You can suppress that with:
theButton.setFocusPainted( false );

Learning More

Oracle’s Javadoc on Focus Spec : available:


This page is posted
on the web at:

http://mindprod.com/jgloss/focus.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\focus.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.15.240.141]
You are visitor number