|
//
Make a new Panel and add the TextFields to it. |
How to improve Applet layoutStudents always ask me this, so try this quick and dirty technique for now. We use another awt object called a Panel, then we set GridLayout to the panel. By using more than one Panel we can group items together. It's a bit of a kludge but will keep you off my back for a while. Hopefully. If you replace the init code with that shown on the left, you will get a neater layout. The first parameter to GridLayout is the number of rows and the second, the number of columns. You add the items across, then down. |
|
Close
this window to return to the previous page |
| Questions or problems related to this web site should be addressed to Richard Jones who asserts his right to be identified as the author and owner of these materials - unless otherwise indicated. Please feel free to use the material presented here and to create links to it for non-commercial purposes; an acknowledgement of the source is required by the Creative Commons licence. Use of materials from this site is conditional upon your having read the additional terms of use on the about page and the Creative Commons Licence. View privacy policy.
© 2001 - 2006 Richard Jones, PO BOX 246, Cambridge, New Zealand; This page was last modified on April 4, 2006 |