Here's example code for using GridBagLayout. Here's the same program, running as an applet: Your browser can't run 1.0 Java applets, so here's a picture of the window the program brings up:
Here's the same program, running as an applet:
Your browser can't run 1.0 Java applets, so here's a picture of the window the program brings up: