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.
JSlider の ChangeListener を実装すると、値が変更されるたびにイベントが発生します。JSLider の最後の値を取得する必要があります。スライダーがアクセスしたすべての値は必要ありません。ユーザーがスライダー ポインターを離したときの最後の値だけが必要です。
stateChanged 関数内の getValueIsAdjusting() を確認してください。
JSlider source = (JSlider)e.getSource(); if (!source.getValueIsAdjusting()) { .... }