Results 1 to 2 of 2
  1. #1
    Osi
    Osi is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Trying to learn GUI

    Well I have to say that I'm a complete beginner in Java and only understand some of the basics, but i'm willing to learn and give it a try.

    The first program that I have created successfully for myself was a small adding program in Netbeans that has a simple GUI layout. It seemed fairly straight forward using Swing; just position the text fields, labels, and buttons then right click and add an action. With that sorta figured out I tried making a different more ambitious program.

    This program tries to use a list to visualize the available COM ports. Unfortunately right clicking doesn't seem to cut in this case and i've been messing around with Netbeans for a few hours to try and find some insight but to no avail.

    So the question is: How do I change what a list contains? And how do I record what the user chooses as a selection?

    Thanks
    ~Osi

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Trying to learn GUI

    If you want to learn Java GUI programming, first you'll want to not use NetBeans to generate your GUI code. Sure use it as an IDE, but if you use it to generate your Swing code at this level, it will shield you from the underpinnings of Swing and you will not gain a feel for it. Instead I strongly urge you to go to the Swing tutorials and learn Swing there.

Similar Threads

  1. Where and what to learn next?
    By ryanmk54 in forum New To Java
    Replies: 1
    Last Post: 06-29-2011, 12:52 AM
  2. Trying to re-learn
    By Angry@Java in forum Introductions
    Replies: 2
    Last Post: 05-05-2011, 01:22 AM
  3. How did you learn?
    By code_newbie in forum New To Java
    Replies: 17
    Last Post: 12-25-2010, 01:25 AM
  4. To learn or not learn?
    By Fuzzman3000 in forum New To Java
    Replies: 5
    Last Post: 07-09-2010, 06:11 AM
  5. Need ur help to learn
    By yamuna.java in forum Web Frameworks
    Replies: 2
    Last Post: 06-06-2010, 03:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •