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.
システム LaF を使用する Swing コンポーネント JList には、現在選択されているアイテムまたはフォーカスされているアイテムの周りに点線の境界線があります。
選択したアイテムから境界線を完全に削除する方法はありますか?
多くのルック アンド フィールでは、次の UI プロパティを設定することで、フォーカス ボーダーを簡単に削除できます。
UIManager.put("List.focusCellHighlightBorder", BorderFactory.createEmptyBorder());