Hello again,
I've asked a few questions regarding how to build a form in Java using AWT. I'm having a lot of problems getting the components to align themselve in a visually appealing way -- for some reason things seem to default to terrible placement.
Anywyas, the form I want is like this:
UserID: [TextBoxHere]
Name: [TextBoxHere]
Status: [DropDownMenuHere]
Language: [CheckBoxHere][CheckBoxHere]...[CheckBoxHere]...
Foreign: [RadioButtonHere] [RadioButtonHere]
[Text box here ]
Now this would be very simple to do in HTML (and I'm sure there must be some trick to doing it in Java, but I can't seem to figure it out) I'm using the GridBagLayout and adjusting the gridx and gridy values as I add the above componets to the applet.
It looks terrible -- labels on the far left of the window, text fields several inches to the right...Radio buttons and checkboxes are spaced irratically -- Help!! :]
2007-08-14
14:13:38
·
4 answers
·
asked by
Tigian
1
in
Computers & Internet
➔ Programming & Design