Swing/DrawsTreeFocus のバックアップ差分(No.2)
- バックアップ一覧
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- ソース を表示
- バックアップ を表示
- Swing/DrawsTreeFocus へ行く。
- 追加された行はこの色です。
- 削除された行はこの色です。
TITLE:JTreeのノードがフォーカス状態になった場合のBorderを変更する #tags(JTree, UIManager, Border, Focus, LookAndFeel) #author(aterai) #pubdate(2014-06-16T01:26:31+09:00) --- title: JTreeのノードがフォーカス状態になった場合のBorderを変更する tags: [JTree, UIManager, Border, Focus, LookAndFeel] author: aterai pubdate: 2014-06-16T01:26:31+09:00 description: JTreeのノードが選択されてフォーカス状態になった場合のBorderによる描画をUIManagerで変更します。 --- * 概要 [#o962fb9d] `JTree`のノードが選択されてフォーカス状態になった場合の`Border`による描画を`UIManager`で変更します。 #download(https://lh3.googleusercontent.com/-I62wWvQhdQI/U53BUsVLj9I/AAAAAAAACHk/SSHVLXv9m28/s800/DrawsTreeFocus.png) * サンプルコード [#t78e9fdb] #code(link){{ UIManager.putBoolean("Tree.drawsFocusBorderAroundIcon", false); UIManager.putBoolean("Tree.drawDashedFocusIndicator", false); }} * 解説 [#e9db303f] - `Tree.drawsFocusBorderAroundIcon` -- `ture`の場合、JTreeのノードアイコンも囲むように`Border`が拡張される(背景色で塗りつぶされる範囲は変化しない) -- `ture`の場合、`JTree`のノードアイコンも囲むように`Border`が拡張される(背景色で塗りつぶされる範囲は変化しない) -- `MotifLookAndFeel`の初期値は`true` - `Tree.drawDashedFocusIndicator` -- `ture`の場合、JTreeのフォーカスの描画に使用する`Border`が点線になる -- `ture`の場合、`JTree`のフォーカスの描画に使用する`Border`が点線になる -- `WindowsLookAndFeel`の初期値は`true` //** 参考リンク //* 参考リンク * コメント [#n8b2231b] #comment #comment