PPT Slide
The fourth quadrant (continued):
Create room for Button2 and Button3 by:
creating a new Panel3,
then adding it to Panel2,
then subdividing Panel3 into 1
row of 2 columns:
// create the new Panel3
Panel Panel3 = new Panel();
// add Panel3 to Panel2
Panel2.add (Panel3);
// subdivide Panel3
// into 1 row, 2 columns
Panel3.setLayout
(new GridLayout (1,2));
// add the Buttons to Panel3
Panel3.add (Button2);
Panel3.add (Button3);
Previous slide
Next slide
Back to first slide
View graphic version