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 4 of 4

Thread: GUI: Moving away from the terminal

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default GUI: Moving away from the terminal

    Hi guys, I am new to this forum. I have basic java experience, and I am currently using the Eclipse IDE.

    I have programmed only so much in java, but I always wanted to move away from the terminal and get into creating actual user interfaces that one might encounter in a regular program. This is just for practice and my own play--it isn't for any serious project. I was wondering if any experienced java coders could lend a hand on this front by telling me how you first got into creating user interfaces. Where is the best place to start? How did you start?

    With a quick google, I found this (the Swing toolkit):
    Trail: Graphical User Interfaces (The Java™ Tutorials)

    And I'm wondering whether that is what people normally use. Should I start there and just practice with the API? Also, do you think it is worth it to get used to creating GUI's or does it not matter as much as the terminal?

    Thanks for any and all responses.


  2. #2
    Junior Member
    Join Date
    Jun 2012
    Location
    Birmingham
    Posts
    20
    My Mood
    Depressed
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: GUI: Moving away from the terminal

    that webpage is a good place to learn i am currently learning of that and also on youtube a guy names bucky or TheNewBoston is his username
    he has over 200 java tutorials on things from classes to methods constructors, data types, complex objects, gui and just about everything i have came across so far. i currently use the Swing packages for my gui i dont know if there is another way but pretty sure there is.

    also once you have the basics on how to write code see the java API docs on whatever package you want... its got all the information on every package... just incase you didn't know.... id like to say i been learning for about 3 weeks an there are all things i am finding useful i hope it helps
    and i hope your up for some heavy reading

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

    hippoCase (June 11th, 2012)

  4. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: GUI: Moving away from the terminal

    Using GUI changes the way the program interacts with a user.
    With the terminal the program prompts the user for input and waits for his response.
    With GUI the program presents a screen with input areas and buttons etc and returns to the JVM to wait for the user's actions. The program will be notified of an action by an event object being passed to a special method known as a listener. The listener's code will then do the processing needed to handle the event. When done, the listener method will return control to the JVM to wait for the next user action. Sometimes the listener code will need to start another thread to do extended processing before it returns control to the JVM so that the processing won't lock up the GUI responsiveness. The lockup occurs because the listener is using the JVM's execution thread known as the Event Dispatch Thread (EDT).

    Lots of new stuff to learn about.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #4
    Junior Member
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: GUI: Moving away from the terminal

    Thanks for the responses.

Similar Threads

  1. Display HTMl code in JAVA terminal...
    By Alkirk in forum Java Theory & Questions
    Replies: 3
    Last Post: November 16th, 2011, 03:34 AM
  2. [SOLVED] Stopping java in terminal
    By Scotty in forum Java Theory & Questions
    Replies: 1
    Last Post: May 7th, 2011, 06:53 PM
  3. Terminal Tamagotchi
    By FlurrYx in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 12th, 2011, 01:05 PM
  4. Quick help with using linux terminal
    By Stockholm Syndrome in forum Java Theory & Questions
    Replies: 0
    Last Post: April 1st, 2011, 09:28 AM
  5. Need some help with OSX Java (Terminal)
    By mkoop in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 14th, 2011, 12:23 PM