Hi i was just wondering if someone could point me toward the right direction for learning how to program java applications with GUI. Thanks
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi i was just wondering if someone could point me toward the right direction for learning how to program java applications with GUI. Thanks
There are hundreds of tutorials on that subject.
Here are the first three a Google search provided:
Creating a GUI With JFC/Swing
JAVA SWING GUI TUTORIAL
Complete Java GUI Tutorial - Beginner to Expert!
I'm writing one without buttons, only using point and click functions. In some of my posts I added a link where you can download code in different versions. I still have some unresolved issues with it though.
Best of luck,
Alice
PrgmMGF (December 21st, 2010)
One another link for Java GUI-Swing beginners.
Java Beginner Swing Tutorial
Goldest
Java Is A Funny Language... Really!
Sun: Java Coding Conventions
Click on THANKS if you like the solution provided.
Click on Star if you are really impressed with the solution.
PrgmMGF (December 21st, 2010)
Thanks wasnt sure exactly what to look for i never heard of java swing
A lot of stuff with GUIs uses the package awt.
java.awt.event.*;
java.awt.Color
Most GUIs I've seen extend either JFrame or JPanel.
However, JOptionPane is also a GUi. Basically a replacement for command prompt.
All its methods are static.
All swing components are derived from awt components (or other swing components). AWT is the native library required to interface Java with the local OS. Swing is written completely in Java and uses the AWT toolkit (lol, talk about redundant) to create a "friendly" API.
Basic rule:
Every GUI component which begins with "j" (such as JColorChooser, JFrame, JPanel, etc.) are all Swing components. All GUI components which don't begin with "j" (such as Frame, Panel, Applet, etc.) are AWT components.
There is also SWT, which is used in Eclipse. It's not part of the standard Java API, though, and I'm not exactly sure what the status of SWT is other than it's still being used in Eclipse.
You say GUI, but as far as I'm aware that means Graphical User Interface and as far as I'm aware that could be done using one of the following and possibly more:
- Operating System
- Web technologies (HTML/JSP/Servlets etc)
- 3D based graphics (OpenGL)
I take it you're probably looking at using operating system based GUI components and in that case Swing might be your cup of tea as mentioned in a previous post above.
The reason I thought I'd post this is because I think you need to be clear what you ask for as in many circumstances one word/abbreviation (GUI) means different things to different people.
Good luck in your venture to GUI perfection
// Json