blob: 4d5fc48626ce16fb2ca261828387af8e2e1b6fb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* Listing3102.java */
import java.awt.*;
import java.awt.event.*;
public class Listing3102
extends Frame
{
public static void main(String[] args)
{
Listing3102 wnd = new Listing3102();
wnd.setVisible(true);
}
public Listing3102()
{
super("Test FlowLayout");
addWindowListener(new WindowClosingAdapter(true));
//Layout setzen und Komponenten hinzuf�gen
setLayout(new FlowLayout(FlowLayout.LEFT,20,20));
add(new Button("Button 1"));
add(new Button("Button 2"));
add(new Button("Button 3"));
add(new Button("Button 4"));
add(new Button("Button 5"));
pack();
}
}
|