FileDocCategorySizeDatePackage
NullLayoutExample.javaAPI DocExample615Sat Jun 02 02:42:42 BST 2001None

NullLayoutExample.java

// This example is from _Java Examples in a Nutshell_. (http://www.oreilly.com)
// Copyright (c) 1997 by David Flanagan
// This example is provided WITHOUT ANY WARRANTY either expressed or implied.
// You may study, use, modify, and distribute it for non-commercial purposes.
// For any commercial use, see http://www.davidflanagan.com/javaexamples

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

public class NullLayoutExample extends Applet {
  public void init() {
    // Get rid of the default layout manager.
    // We'll arrange the components ourself.
    this.setLayout(null);
    for(int i = 1; i