I'll admit no strong preference, except that separate classes seem to be your best bet. Filling in Labels Let's create a simple application that greets the user. We need a text field for the user's name. As many of you have noted, the arrangement of our GUIs leaves something to be desired. The AWT is designed for building fairly generic GUIs.
Most components resize themselves to fit the available area.
Use a design tool. Use grid layouts and panels. We'll look at the second technique. Let's draw some pictures and think about how to create them. Slight reorganization to page design.