I made a GUI to get time from user before shutdown, and I already set counter to reach 0 after that time ,
but I need a code to actually shutdown the window after the counter turns to 0
I already triedand it didn't workCode:
Runtime.getRuntime().exec("Shutdown.exe -s -t");
so any help...