File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes java newbee guidance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java newbee guidance" Watch "java newbee guidance" New topic
Author

java newbee guidance

shibasish das
Greenhorn

Joined: Aug 09, 2011
Posts: 3
i am a newbee in java. I want to make a desktop app. can anybody tell me how to make the graphics and interface between the UI and the code...
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4528
    
    5

http://download.oracle.com/javase/tutorial/uiswing/index.html


luck, db
There are no new questions, but there may be new answers.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

and Welcome to JavaRanch shibasish das
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
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!


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
James E Baker
Greenhorn

Joined: Jul 28, 2011
Posts: 23
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.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10248
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
shibasish das
Greenhorn

Joined: Aug 09, 2011
Posts: 3
thank you for your help and giving me a guideline to start working with JAVA...another thing i want to ask is "whether AWT is only used for APPLETS ?""
Ashish Schottky
Ranch Hand

Joined: Dec 29, 2009
Posts: 93
@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.
shibasish das
Greenhorn

Joined: Aug 09, 2011
Posts: 3
@Ashish Schottky : thanks for you reply...that means SWING is basically used for developing UI and AWT for adding functionalitise..??
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: java newbee guidance