Setup GUI using grid bag layout
Posted on 1997-06-22
Within my applet, I would like to set up a user interface using the grid bag layout manager with the following setup:
top left corner is a label with the text "whatever" centered at top, taking up two column,
top right is a black canvas, taking up two columns,
the bottom row, from left to right, contains 4 buttons, labeled "one" to "four", say.
The 4 columns are given equal weighting, while the top row containing the label and the canvas should take up 80% of the height of the applet.
What is the easiest way to do this?