Swing/DividerDraggingColor のバックアップ差分(No.2)
- バックアップ一覧
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- ソース を表示
- バックアップ を表示
- Swing/DividerDraggingColor へ行く。
- 1 (2014-09-15 (月) 00:07:35)
- 2 (2014-10-25 (土) 23:47:58)
- 3 (2015-11-22 (日) 13:59:03)
- 4 (2017-05-12 (金) 16:00:13)
- 5 (2018-05-05 (土) 04:58:10)
- 6 (2020-04-25 (土) 20:47:06)
- 7 (2021-10-28 (木) 03:21:07)
- 8 (2022-08-22 (月) 01:10:48)
- 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-04-28 (月) 03:02:23)
- 15 (2025-06-19 (木) 12:41:37)
- 16 (2025-06-19 (木) 12:43:47)
- 追加された行はこの色です。
- 削除された行はこの色です。
TITLE:JSplitPaneでドラッグ中のDividerの背景色を設定する #navi(../) #tags(JSplitPane, UIManager) RIGHT:Posted by &author(aterai); at &time(2014-09-15T00:00:21+09:00); --- title: JSplitPaneでドラッグ中のDividerの背景色を設定する tags: [JSplitPane, UIManager] author: aterai pubdate: 2014-09-15T00:00:21+09:00 description: JSplitPaneのDividerがドラッグ中の場合に、その移動先を示す矩形の色を変更します。 --- * 概要 [#o80016ef] `JSplitPane`の`Divider`がドラッグ中の場合に、その移動先を示す矩形の色を変更します。 #download(https://lh5.googleusercontent.com/-M9cMsnuWpL0/VBWl0TfGYyI/AAAAAAAACNI/qvejKL7NGVk/s800/DividerDraggingColor.png) * サンプルコード [#ya9caa72] #code(link){{ UIManager.put("SplitPaneDivider.draggingColor", new Color(255, 100, 100, 100)); }} * 解説 [#ff320695] 上記のサンプルでは、`JSplitPane#setContinuousLayout(false)`で、`JSplitPane`の`Divider`がドラッグ中の場合に、`Divider`の移動先を示す矩形の色を変更しています。 ---- ドラッグ中ではない`Divider`の色は、`LookAndFeel`によっては、以下のような方法で変更することができます。 #code{{ BasicSplitPaneDivider divider = ((BasicSplitPaneUI) getUI()).getDivider(); divider.setBackground(Color.ORANGE); }} * 参考リンク [#z74232ef] - [[JSplitPaneでディバイダの移動を連続的に再描画>Swing/ContinuousLayout]] * コメント [#uc73b3da] #comment #comment