This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Building Application with Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Building Application with Forms" Watch "Building Application with Forms" New topic
Author

Building Application with Forms

Sam Benry
Ranch Hand

Joined: Mar 21, 2008
Posts: 89
Well I know how to create command line application with
public static void main(String[] args)... as main argument..
I am searching for a guide to tell me the BASICS of creating forms, text boxes and buttons .. etc
Please can you guide me and tell me where to start. Any tutorials would be helpful, where should I read guides for an absolute newbie ?
Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
You need to bookmark the Java Tutorials. Go through the index and there is a section about GUIs, with lots and lots of subsections.

You would still usually start off your application from the command line, however.
Sam Benry
Ranch Hand

Joined: Mar 21, 2008
Posts: 89
thanks a lot, I started building GUI applications. I have 2 questions:
1) Is it good to use NetBeans IDE ? I used to use eclipse but its much easier to use Netbeans for GUI... (drag and drop)
2) Can you please tell me how to trigger Form_Load ? I want to hide some components when the application starts, but I cant figure out where to place the code that is triggered when the Form is loaded...
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
Eclipse and NetBeans are both perfectly good applications. I prefer Eclipse, but lots of people prefer NetBeans. Be aware that the drag'n'drop interface creates its own style of code inside a method (I think init()) which is different from what you get when you code by hand.
Sam Benry
Ranch Hand

Joined: Mar 21, 2008
Posts: 89
I'm fairly new to this, so is it worse to use drag and drop ? why ?
And can you answer the question about Form_Load?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
Not familiar with Form_Load.

Most people think it is worthwhile learning what the code underlying the drag'n'drop is first. That's probably as far as it goes.

Anybody else's opinions welcomed, please.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Building Application with Forms
 
Similar Threads
Using Tapestry
hibernate query
How to practice struts in Eclipse
certificate ???
Urgent....MDI form in Java