Home arrow Java arrow Page 3 - Developing Java Applications using NetBeans
JAVA

Developing Java Applications using NetBeans


This article introduces you to all of the Java productive tools available in the market. It also explains how to develop simple Java applications using NetBeans IDE.

Author Info:
By: Jagadish Chaterjee
Rating: 4 stars4 stars4 stars4 stars4 stars / 28
May 03, 2006
TABLE OF CONTENTS:
  1. · Developing Java Applications using NetBeans
  2. · Which tool for what?
  3. · Creating a console application using NetBeans IDE
  4. · Creating a desktop application using NetBeans IDE

print this article
SEARCH DEVARTICLES

Developing Java Applications using NetBeans - Creating a console application using NetBeans IDE
(Page 3 of 4 )

Once you install NetBeans IDE 4.1, you should be able to see "NetBeans 4.1" in your programs list.  Try opening your tool by going to start -> programs -> Net Beans 4.1 -> NetBeans IDE.

Let us create a simple console application using the same IDE.  With the NetBeans IDE open, go through the following steps:

  • Go to File -> New project (or you can directly press the "New Project" button) as highlighted in the following fig 1.

  • You will be presented with a "New Project" window.  Select "General" in the "categories" and "Java Application" in the "Projects" (as shown in Fig 2).

  • After selecting accordingly click "next."  You will be presented with a "New Java Application" window.
  • Give the "Project Name" as "HelloWorld," provide your own location, and switch on all the check boxes.  Your window must look something like the following fig 3.

  • Once it looks like the above, click on "Finish."
  • You can observe that it has readily made some code to make your life easier.  You can try to play and explore for yourself all the tool windows (at the left side) available within the same IDE.
  • Make modifications to your code in such a way that it looks something like the following:

package helloworld;
/**
 *
 * @author Administrator
 */
public class Main {   

    /** Creates a new instance of Main */
    public Main() {
    }   

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Hello World!");
    }   

}

  • Execute your application and you should be able to see the result (which is simply a message "Hello World") as highlighted in fig 4.


blog comments powered by Disqus
JAVA ARTICLES

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials