Is it possible to add clock in Java NetBeans? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to add clock in Java NetBeans?

I want to add clock/time in Java NetBeans, Is it possible to select the time(like hours, minutes, seconds) in Java NetBeans, for example like selecting a date (JDateChooser) Do you use JTimeChooser?

9th Jun 2023, 5:49 AM
Nasywa
1 Answer
+ 2
https://docs.oracle.com/javase/8/docs/api/javax/swing/SpinnerDateModel.html Use JSpinnerDateModel for that. Here ypu have the documentation.
9th Jun 2023, 10:27 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar