28 lines
449 B
Java
28 lines
449 B
Java
/**
|
|
@version 1.31 2004-05-11
|
|
@author Cay Horstmann
|
|
*/
|
|
|
|
import java.awt.*;
|
|
import javax.swing.*;
|
|
|
|
/**
|
|
A frame with a button panel
|
|
*/
|
|
class ButtonFrame extends JFrame
|
|
{
|
|
public ButtonFrame()
|
|
{
|
|
setTitle("ButtonTest");
|
|
setSize(WIDTH, HEIGHT);
|
|
|
|
// add panel to frame
|
|
|
|
ButtonPanel panel = new ButtonPanel();
|
|
add(panel);
|
|
}
|
|
|
|
public static final int WIDTH = 300;
|
|
public static final int HEIGHT = 200;
|
|
}
|