Java GUI.

Soldato
Joined
26 Nov 2005
Posts
3,839
Location
Doon the Bay (Newcastle)
I'm a beginner and i'm really struggling with the layout of a GUI.

I can't get my data panels to line up properly.

Instead of something like this:

Nights (label): [textbox]

Forname (label): [textbox]

Surname (label): [textbox]

Then a big output box with a label near it i'm getting 3 labels in a row, then the 3 input boxes.

I can't seem to convert my GUI in to grid layout, currently i'm using the NSEW border layout as that's all i know, and not very well either.

That layout works well for the positioning of my radio buttons (center) and my button panel (south) but North for the data panel just doesn't do it. :(

On top of that when one of the radio buttons is selected, i need another set of radio buttons or pref data panels to pop up and dissapear again when the buttons isn't selected.

Does anyone know what i should be doing here?

Many thanks.
 
Java GUI arrangement is nasty :S

Try splitting it into a gridlayout first, 2 wide
Then put the labels into the left one, and textboxes into the right.

Hi,

Thanks, i hope i'm not being cheeky but could you give a working example.

I just need to see it working first, then i can learn from it.

Thanks.
 
So these apps allow me to drag and drop where i want things to go, without coding?

Does it generate the needed code so i can edit it in something such as blue J, or copy and paste the code in to my project?

Also are they free?

Thanks
 
Cool, can't install here at college, will have to wait until i get home to have a play about with that one.

Will such programs allow me to select a radio button and then produce other text feild options when selected, and hide when another radion button option is selected? (as that was my other query for code, but if that can do it then i'm quite happy to use that)

Get that sorted and i just need to somehow link up my working classes to the GUI. God i hate Java. :(
 
Back
Top Bottom