FileDocCategorySizeDatePackage
BorderLayoutExample.javaAPI DocExample867Mon Sep 22 13:30:30 BST 1997None

BorderLayoutExample

public class BorderLayoutExample extends Applet

Fields Summary
String[]
borders
Constructors Summary
Methods Summary
public voidinit()

     
    // Create and specify a BorderLayout layout manager that leaves
    // 10 pixels of horizontal and vertical space between components
    this.setLayout(new BorderLayout(10, 10));
    for(int i = 0; i < 5; i++) {
      // Swap the order of these arguments in Java 1.1
      this.add(borders[i], new Button(borders[i]));
    }