• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java newbee guidance

 
shibasish das
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://download.oracle.com/javase/tutorial/uiswing/index.html
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to JavaRanch shibasish das
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
James E Baker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11096
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shibasish das
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ashish Schottky : thanks for you reply...that means SWING is basically used for developing UI and AWT for adding functionalitise..??
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic