Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次の単純なJavaSwingアプリを持っています:
私のボタン「新しいボタン」はデフォルトでマーク/フォーカスされていますが、そのデフォルトのマークを変更/削除したいと思います。
それ、どうやったら出来るの?
そのデフォルトのマーキングを変更/削除したいと思います。
このプロパティを変更することは可能です
JButton#setFocusPainted(boolean b)
JButton#setFocusable(boolean focusable)