Specifications

Sun Services
Java™ Programming Language
Module 10, slide 22 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
The FlowExample Class
1 import java.awt.*;
2
3 public class FlowExample {
4 private Frame f;
5 private Button button1;
6 private Button button2;
7 private Button button3;
8
9 public FlowExample() {
10 f = new Frame("Flow Layout");
11 button1 = new Button("Ok");
12 button2 = new Button("Open");
13 button3 = new Button("Close");
14 }