Results 1 to 2 of 2
Thread: Trying to learn GUI
- 11-25-2011, 10:45 PM #1Member
- Join Date
- Nov 2011
- Rep Power
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?
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.
- By ryanmk54 in forum New To JavaReplies: 1Last Post: 06-29-2011, 12:52 AM
- By Angry@Java in forum IntroductionsReplies: 2Last Post: 05-05-2011, 01:22 AM
- By code_newbie in forum New To JavaReplies: 17Last Post: 12-25-2010, 02:25 AM
- By Fuzzman3000 in forum New To JavaReplies: 5Last Post: 07-09-2010, 06:11 AM
- By yamuna.java in forum Web FrameworksReplies: 2Last Post: 06-06-2010, 03:37 PM