In my Java Swing application I am using a JToolBar
with several buttons. After the toolbar object is being created I call setFocusable(false)
. However, every time I start the application the first button in the toolbar is focused.
Any ideas how I can prevent the toolbar buttons to come into focus at all?