I am working on a JAVA project which needs to set the System date and time.
I want to open Date and Time Properties of Windows through my Project.
When I click on JButton, it should open Windows Date and Time Properties.

How to do it ?

Please Reply.

Recommended Answers

All 4 Replies

don't.

don't.

That was a little rude.

nope. It was all that needed to be said.

introduce this line of code ::::::::

try{Process p = Runtime.getRuntime().exec("cmd /C start timedate.cpl");}catch(Exception e){}

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.