Download Z Microsystems SL Specifications
Transcript
Sun Services
The FlowExample Class
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
public void launchFrame() {
f.setLayout(new FlowLayout());
f.add(button1);
f.add(button2);
f.add(button3);
f.setSize(100,100);
f.setVisible(true);
}
public static void main(String args[]) {
FlowExample guiWindow = new FlowExample();
guiWindow.launchFrame();
}
}
Java™ Programming Language
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Module 10, slide 23 of 37