Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

java newbee guidance

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://download.oracle.com/javase/tutorial/uiswing/index.html
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and Welcome to JavaRanch shibasish das
 
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?""
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic