JSpinnerの値が境界値になった場合、ArrowButtonを無効にする
Total: 1999
, Today: 1
, Yesterday: 0
Posted by aterai at
Last-modified:
Summary
JSpinner
の値が上限または下限になった場合、対応するArrowButton
を無効にしてクリック不可にします。
Screenshot

Advertisement
Source Code Examples
Explanation
UIManager.put("Spinner.disableOnBoundaryValues", Boolean.FALSE)
- 境界値になっても
ArrowButton
はクリック可能だが値は変更されない MetalLookAndFeel
、NimbusLookAndFeel
、WindowsLookAndFeel
などでのデフォルト
- 境界値になっても
UIManager.put("Spinner.disableOnBoundaryValues", Boolean.TRUE)
- 境界値になると
ArrowButton
は無効になりクリック不可で値の変更も不可になる GTKLookAndFeel
でのデフォルトMetalLookAndFeel
の場合のみ?起動中に切替可能
- 境界値になると