Hi i was just wondering if someone could point me toward the right direction for learning how to program java applications with GUI. Thanks
Printable View
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
One another link for Java GUI-Swing beginners.
Java Beginner Swing Tutorial
Goldest
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