Help with how to set up my layout
This is what i need to do except the layout alone is being a pain and cant get it to do what i want even though i know how to make a flow and grid layout.
I'm using grid at the moment
So my questions are
How do you tell it when the jlabels and textfields are supposed to stay on 1 line and when to go to a new line.
Also on the grid when I create a new column I don't see a difference at all and can't get it to move a thing to it.
If the flow layout works better please still tell me the above just for flow instead of grid or even do both if you want.
This is the basic layout code from my book and it works but I cant edit it to what I want.
public class MortgageCalculator extends JFrame
add(new JLabel("First Name:"));
add(new JLabel("Last Name"));
public static void main (String  args)
MortgageCalculator frame = new MortgageCalculator();
Re: Help with how to set up my layout
Rather than adding your components directly to the frame, try adding them to a panel and then the panel to the frame. The advantage of this is you can add one, two or more panels to other panels and each panel can have a different layout manager. Do this as many times as you need to achieve the layout you want.