Re: how to make GUI in java



"rajeshkankran@xxxxxxxxx" <rajeshkankran@xxxxxxxxx> wrote:

hi all

I m new to java swings.
i know about swings little....but want to know how to build gui in
java
1. Download NetBeans. Choose the Java SE download at
<http://download.netbeans.org/netbeans/6.0/final/>. If you don't have
a broadband Internet connection get the free DVD instead
<http://www.netbeans.org/about/media.html>.

2. Choose File->New Project from the menu then choose Java and Java
Desktop Application from the Choose Project screen of the wizard.
Leave the defaults in the New Desktop Application screen and select
Basic Application before you click Finish.

3 Choose Run->Run Main Project from the menu. Note that you have just
achieved your goal of a working GUI in Java and it took about ten
minutes. Try you program's Help->About menu. It works! The only other
thing your program will do is stop when you choose File->Exit.

I assume you really want your program to do something more and you
will need to drag and drop Swing components from the NetBeans palette
to your form and add Java code to instruct your program what to do.
Try it, a small step at a time. NetBeans is always available as a
tutor and can advise you about the errors in your program, the code
that might come next or the libraries you need and their
documentation.

You will end up reading a high proportion of the tutorials that other
posters have recommended but I find the "top down" approach is more
rewarding.
.



Relevant Pages

  • Re: A constructive debate: Eclipse or NetBeans?
    ... However, I've tried NetBeans recently. ... better support for creating GUIs than Eclipse ... "make" as a build system and primarily programming in OCaml. ... Sun's Java implementation. ...
    (comp.lang.java.softwaretools)
  • Netbeans6 - Javas own "Vista experience" ?
    ... I'm but a Java programmer and not even a veteran at that. ... I started using Netbeans 4.x and immediatly adopted it ... you'll see is a lightbulb which warns you about missing javadocs. ...
    (comp.lang.java.advocacy)
  • Netbeans 5.0 revisited
    ... When I started with my Java self-study last year I immediatly came into contact ... IDE and that is where Netbeans came into the picture. ... The code window being the biggest which has a small 'stroke' at ... some of its new features even make it rival IntelliJ while ...
    (comp.lang.java.advocacy)
  • NetBeans IDE 4.1 Early Access 2
    ... This early access release has over 15 new modules for developing Java 2 ... the novel and breakthrough NetBeans 4.0 technology. ... Platform, Micro Edition, and now J2EE Enterprise Java Bean ... * The NetBeans IDE guides the user through the process to easily learn ...
    (comp.os.linux.announce)
  • Re: Beginner Question; IDE & Book?
    ... None of the above are a good introduction to Java. ... I like printed manuals so I use "Netbeans: ... Sun have some free web-based training ... is a free download and I ...
    (comp.lang.java.programmer)