Swing/DrawsTreeFocus のバックアップソース(No.1)
- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- バックアップ を表示
- Swing/DrawsTreeFocus へ行く。
- 1 (2014-09-17 (水) 02:15:51)
- 2 (2014-10-26 (日) 04:01:18)
- 3 (2015-04-05 (日) 23:11:14)
- 4 (2016-06-24 (金) 16:14:58)
- 5 (2017-09-21 (木) 04:37:55)
- 6 (2018-05-31 (木) 14:31:33)
- 7 (2020-05-21 (木) 18:55:16)
- 8 (2021-11-11 (木) 01:10:37)
- 9 (2025-01-03 (金) 08:57:02)
- 10 (2025-01-03 (金) 09:01:23)
- 11 (2025-01-03 (金) 09:02:38)
- 12 (2025-01-03 (金) 09:03:21)
- 13 (2025-01-03 (金) 09:04:02)
- 14 (2025-06-19 (木) 12:41:37)
- 15 (2025-06-19 (木) 12:43:47)
TITLE:JTreeのノードがフォーカス状態になった場合のBorderを変更する #tags(JTree, UIManager, Border, Focus, LookAndFeel) #author(aterai) #pubdate(2014-06-16T01:26:31+09:00) * 概要 [#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`が拡張される(背景色で塗りつぶされる範囲は変化しない) -- `MotifLookAndFeel`の初期値は`true` - `Tree.drawDashedFocusIndicator` -- `ture`の場合、JTreeのフォーカスの描画に使用する`Border`が点線になる -- `WindowsLookAndFeel`の初期値は`true` //** 参考リンク * コメント [#n8b2231b] #comment