Thumbs upJAVABasic GUI Coding

Posts 1–6 of 6 · Page 1 of 1
Basic GUI Coding
Hey guys welcome to my tutorial.

Today, I will be showing you how to make boxes with certain things popping up.


First. Make a new project. (Or delete existing files)


Second. Name it to whatever. (JavaGUI)


Third. Make a class. (Name it whatever)


Now once you have your class open. You want to import:
Code:
import javax.swing.*;
Fourth. Make a void.
Code:
public static void main(String args[])
{

}
Fifth. In the void type:


Result:


Then your done! For more methods type "JOptionPane.(List of guis' here)
Moved to the correct place
Quote Originally Posted by 'Bruno View Post
Moved to the correct place
Thanks. Didn't know there was a tutorial section.
No offense.. but anyone who's has just started to learn GUI on Java *should* know that... That's how me creating a tutorial about "Hello World"... You don't even explain what's what... Anyone can copypaste that stuff just googling.
Quote Originally Posted by MarkHC View Post
No offense.. but anyone who's has just started to learn GUI on Java *should* know that... That's how me creating a tutorial about "Hello World"... You don't even explain what's what... Anyone can copypaste that stuff just googling.
Funny, i learned this myself and decided to show others. Just being helpful..
Quote Originally Posted by Drinking Water View Post
Funny, i learned this myself and decided to show others. Just being helpful..
I know. I'm not criticizing you. I just said it'd be better if you at least explained what you're really doing... the JOptionPane class, etc. Otherwise this is nothing more than just source code, not a tutorial. And source code, anyone with brains can find all over the web. But it's nice to see you at least contributing with the forum.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?