/** * FlowLayoutApplet.java * Copyright (c) 1998 Yoon Kyung Koo. All rights reserved. * * First release date 1998/06/07 * * @version 1.0 1998/06/07 * @author Yoon Kyung Koo */ import java.awt.*; public class FlowLayoutApplet extends java.applet.Applet { public void init () { Button oneButton=new Button("One"); Button twoButton=new Button("Two"); Button threeButton=new Button("Three"); setLayout(new FlowLayout(FlowLayout.RIGHT)); // if not specified, FlowLayout will be default layout // (Applet is a sub-class of Panel, so FlowLayout is default) // default alignment is FlowLayout.CENTER add(oneButton); add(twoButton); add(threeButton); validate(); } }