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.
日付/時刻が yyyy/mm/dd hh/mm/ss の形式のスピナーを作成したいと考えています。私は netbeans を持っていて、その GUI を使ってスピナーを作成しています。スピナーで日付と時刻を表示する日付モデルを選択できますが、必要な形式ではありません。
スピナーで netbeans GUI を使用してフォーマットを変更するにはどうすればよいですか?
以下を宣言する
import java.text.SimpleDateFormat; public SimpleDateFormat yourDate = new SimpleDateFormat("MM-dd-yyyy");