![]() |
[TUT] Java, GUI password Tutorial [JAVA] - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Java, JVM, & JRE (https://sinister.ly/Forum-Java-JVM-JRE) +--- Thread: [TUT] Java, GUI password Tutorial [JAVA] (/Thread-TUT-Java-GUI-password-Tutorial-JAVA) |
[TUT] Java, GUI password Tutorial [JAVA] - FrostByte_mybb_import5923 - 05-07-2011 Hello everyone, Iv been learning Java and i thought i would make a quick tutorial for any beginner's, this is 100% my own work not to say someone hasn't done it before as it is very simple but i did code this from scratch after watching about 10 tutorials on different stuff. This tutorial will take a look at Java Gui's and the If, Else statement. Now because it is me i couldn't make a If, Else tutorial without it being based on a password program. So let's begin. Code: import javax.swing.JOptionPane; Code Explained Code: import javax.swing.JOptionPane; Code: class apples { Code: String fn = JOptionPane.showInputDialog("Password:"); Code: if (fn.equals("root")){ Code: JOptionPane.showMessageDialog(null, "Welcome to the CIA", "Login", JOptionPane.PLAIN_MESSAGE); Code: } Code: else { Code: } Thanks for reading this tutorial, Sorry if you didn't fully understand some bit's. If you would like to to explain any of it again PM me. Thanks you for reading this tutorial hope it helped you. RE: [TUT] Java, GUI password Tutorial [JAVA] - Enc0de - 05-08-2011 Nice share keep it up the good work. RE: [TUT] Java, GUI password Tutorial [JAVA] - FrostByte_mybb_import5923 - 05-08-2011 Thank's man, i have alot more tutorials that i will post if sage make's a programming tab |