Mr. Burke provided an excellent link for learning Swing, but I recommend you learn to code Swing "by hand" rather than using Netbeans' GUI Builder as suggested there. The GUI Builder generates code that is nearly impossible to read, modify, or maintain. The same link and the tutorials you find there contain the information you need to learn to code Swing by hand. Just skip the GUI Builder lesson.
Good luck, and come back when you need help!
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Greg Brannon wrote:Mr. Burke provided an excellent link for learning Swing, but I recommend you learn to code Swing "by hand" rather than using Netbeans' GUI Builder as suggested there. The GUI Builder generates code that is nearly impossible to read, modify, or maintain.!
I couldn't agree more. You definitely need to do Swing and AWT stuff by hand if you wanna learn it. Alot of people on the forum prefer wring code with at text editor, which does work great. However, it wouldn't hurt to use an IDE to help you with debugging. I like Eclipse which is open source & free.
I think the link content has changed over time. Darryl would never be a proponent for DnD kind of IDEs. He has been quite vocal against them in numerous posts.
I would lay the blame at Oracle/Sun. They are so keen on promoting Netbeans, that they have included them in the learning articles, which according to me, is doing more harm for beginners than good.
Greg and James are absolutely right. Drop the GUI Builder. Hand coding is the best way to learn.
@shibashish: AWT stands for Abstract Window Toolkit. It contains a class called as Component. This class contains a method 'Paint(Graphics g)', this paint method is used to update the screen.
eg: Display a message on screen, this will be done with help of paint method.
Joined: Aug 09, 2011
@Ashish Schottky : thanks for you reply...that means SWING is basically used for developing UI and AWT for adding functionalitise..??
Joined: Oct 24, 2010
Swing is an extension of/improvement to AWT. Both can be used for GUI development, but the UI containers and componts themselves (frames, panels, text areas, buttons, etc.) should all come from Swing. Do not mix AWT and Swing graphic elements in the same design. Ive seen articles that say this concern has been fixed as of Java 6, update 12. Swing graphic objects begin with a capital 'J', like JFrame. AWT graphic objects are the name without the leading 'J'. Some accessories of the AWT class remain as the single solution for GUI design and are still used in Swing designs, like event, layout, and graphics handlers.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com