11
JSplitPaneディバイダを移動するタイミングを検出する方法はありますか?仕切りの移動にリスナーを追加する方法はありますか?JSplitPaneディバイダの移動を検出する
JPanel panel1 = new JPanel();
JPanel panel2 = new JPanel();
JSplitPane sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panel1, panel2);
// What do I put here to be notified if the divider in sp is moved?
より良い代わりに文字列そのものの定数 'DIVIDER_LOCATION_PROPERTY'を使用 –