Time is very useful in every program. This will help to track the information stored in the database server according to date and most importantly the time.
This article titled “Display Time on JLable in Java using Netbeans” help you on how to populate these features in your Java program. We provide a source code below and you can use it according to your need.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date.setDate(new Date()); | |
Calendar now = Calendar.getInstance(); | |
time.setText(dateFormat.format(now.getTime())); |
0 Comments