FlowLayout

The following applet uses a FlowLayout to position a series of buttons that mimic the buttons on a tape deck.

import java.applet.*;    
import java.awt.*;

public class TapeDeck extends Applet {

  public void init() {
    
    this.setLayout(new FlowLayout());
    this.add( new Button("Play"));
    this.add( new Button("Rewind"));
    this.add( new Button("Fast Forward"));
    this.add( new Button("Pause"));
    this.add( new Button("Stop"));
  }

}
Applet with five buttons
Previous | Next | Top | Cafe au Lait

Copyright 1997, 1998 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified June 30, 1998