Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: JAVA GUI

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default JAVA GUI

    Hi i was just wondering if someone could point me toward the right direction for learning how to program java applications with GUI. Thanks


  2. #2
    Member
    Join Date
    Nov 2010
    Location
    New Zealand
    Posts
    32
    Thanks
    3
    Thanked 4 Times in 4 Posts

    Default Re: JAVA GUI

    There are hundreds of tutorials on that subject.

    Here are the first three a Google search provided:

    Creating a GUI With JFC/Swing
    JAVA SWING GUI TUTORIAL
    Complete Java GUI Tutorial - Beginner to Expert!

    I'm writing one without buttons, only using point and click functions. In some of my posts I added a link where you can download code in different versions. I still have some unresolved issues with it though.


    Best of luck,

    Alice

  3. The Following User Says Thank You to Alice For This Useful Post:

    PrgmMGF (December 21st, 2010)

  4. #3
    Member goldest's Avatar
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    63
    Thanks
    1
    Thanked 12 Times in 10 Posts

    Wink Re: JAVA GUI

    One another link for Java GUI-Swing beginners.

    Java Beginner Swing Tutorial

    Goldest
    Java Is A Funny Language... Really!

    Sun: Java Coding Conventions

    Click on THANKS if you like the solution provided.
    Click on Star if you are really impressed with the solution.

  5. The Following User Says Thank You to goldest For This Useful Post:

    PrgmMGF (December 21st, 2010)

  6. #4
    Junior Member
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: JAVA GUI

    Thanks wasnt sure exactly what to look for i never heard of java swing

  7. #5
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: JAVA GUI

    A lot of stuff with GUIs uses the package awt.

    java.awt.event.*;



    java.awt.Color

    Most GUIs I've seen extend either JFrame or JPanel.

    However, JOptionPane is also a GUi. Basically a replacement for command prompt.

    All its methods are static.

  8. #6
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JAVA GUI

    All swing components are derived from awt components (or other swing components). AWT is the native library required to interface Java with the local OS. Swing is written completely in Java and uses the AWT toolkit (lol, talk about redundant) to create a "friendly" API.

    Basic rule:
    Every GUI component which begins with "j" (such as JColorChooser, JFrame, JPanel, etc.) are all Swing components. All GUI components which don't begin with "j" (such as Frame, Panel, Applet, etc.) are AWT components.

    There is also SWT, which is used in Eclipse. It's not part of the standard Java API, though, and I'm not exactly sure what the status of SWT is other than it's still being used in Eclipse.

  9. #7
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: JAVA GUI

    You say GUI, but as far as I'm aware that means Graphical User Interface and as far as I'm aware that could be done using one of the following and possibly more:

    - Operating System
    - Web technologies (HTML/JSP/Servlets etc)
    - 3D based graphics (OpenGL)

    I take it you're probably looking at using operating system based GUI components and in that case Swing might be your cup of tea as mentioned in a previous post above.

    The reason I thought I'd post this is because I think you need to be clear what you ask for as in many circumstances one word/abbreviation (GUI) means different things to different people.

    Good luck in your venture to GUI perfection

    // Json