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.
年を表示するために JSpinner を使用しています。現在、JSpinner は 1000 を超える値を区切り記号で表示します。1990 年は 1.990 になります。
カスタム NumberEditor を JSpinner に設定しようとしています:
spBirthdayYear.setEditor(new JSpinner.NumberEditor(spBirthdayYear, "####"));
これはうまくいきません。間違いはどこですか?
JSpinnerのSpinnerModelを変更でき、さまざまな形式を設定できます