I want to create a small application for that purpose I want to know how to set a date in jLabel which was open the application first time in that system using java netbeans.
How to set application first open date in same system using java netbeans
220 views Asked by user5876281 At
2
There are 2 answers
3
On
There is no such possibility (independent of the programming language or the IDE you use).
The reason is that you'd need administrator rights to store that information at a place where all users of the system have assess to and which is not likely to be deleted by accident.
You would need an installer to store that information at such place.
But If you have that you could read that file containing that information. the basic technique to do so is a FileReader
or the Scanner
class from the Java standard lib, but if your "system config" gets more complex you might change to some mapping framework.
Try this out in your main method. Read the starting date from a property file.
Hope this helps. Happy Coding !