Tutorial Java Shut down the PC after specified amount of time - Printable Version +- Red Security (https://redsecurity.info/cc) +-- Forum: Programming (https://redsecurity.info/cc/forumdisplay.php?fid=5) +--- Forum: Java (https://redsecurity.info/cc/forumdisplay.php?fid=7) +--- Thread: Tutorial Java Shut down the PC after specified amount of time (/showthread.php?tid=168) |
Java Shut down the PC after specified amount of time - Mr.Kurd - 09-14-2017 In The Name OF Allah Al-Salam Alekum Hi guys, today we will make a simple app for shutting down the PC after specified amount of time in Java Add two Text Field and a button to your JFrame, then Double Click on the Button, our work Starts here : The First textField is for the hours, the second is for minutes. Okay we will get the text and convert it to int: Code: try{ Wa Salam Alekum |