Campbell Ritchie wrote:Stop using NetBeans. You get scores of lines of incomprehensible code for the group layout, and cannot see what is going on.
Please explain what you mean about adding the info to the right.
Why are you using a pop up menu? Why don't you try a dialogue? I suggest you start with a dialogue which returns one value, e.g. first name, then another for last name. and keep going until you fill the array.
Then see if you can work out how to add things to a dialogue. You can add text fields to a dialogue. And when I said fields I meant fields; you can add multiple components. Start with one text field and then see how you add a second field. You may need to add a panel to the dialogue to contain all the text fields.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:This is where you need to start:
This is the method that is executed when the submit button is pushed. You want to get the text from your JTextField objects (the first is called firstName) and update the table, I'm assuming.
Does that get you started?
Consider Paul's rocket mass heater. |