What layoutmanager is suitable for forms.
I need to use java to create a form.
Unfortunately I'm not allowed to use some graphic builder.
I think this is a very hard assignment and I keep having problems using layoutmanagers.
There is a null-layout which doesn't work when resizing the frame and is hard when you want to extend the frame/panel. You also need to create a helpvariable to give the position of the components.
There is FlowLayout which gives you very little control over what you are doing.
There is BorderLayout which I don't really understand. You can put one object in the Center and one on each side of the frame. So what if I have more than 5 components. What happens when I put more than one object at the center or one of the sides?
There is GridLayout, which appears to be simple, but when you run it, suddenly it resizes your components and makes them ugly.
Then there is SpringLayout, which seems to be best for forms, but it's very lowlevel and I''m not able to get all my components created inside one for-loop.
So how to get a nice form?
I'm by the way very new to creating GUI's, so please give me a simple LayoutManager which actually listens to whatever I tell it to display.