www.pudn.com > 2007419349385.rar > xt.java
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class xt extends Applet implements ActionListener
{
Label lb1=new Label("后勤管理系统");
Button b1=new Button("进入客户查询系统");
Button b2=new Button("进入管理系统");
Button b3=new Button("退出系统");
Panel p1=new Panel( );
Panel p2=new Panel( );
public void init( )
{
setBackground(Color.cyan);
setForeground(Color.blue);
p1.setLayout(new FlowLayout(1,10,120));
p1.add(lb1);
lb1.setFont(new Font("CHINESE_GB2312",Font.BOLD,100));
add(p1);
p2.setLayout(new FlowLayout(FlowLayout.CENTER,2,6));
p2.add(b1);
b1.addActionListener(this);
b1.setBackground(Color.yellow);
p2.add(b2);
b2.addActionListener(this);
b2.setBackground(Color.red);
p2.add(b3);
b3.addActionListener(this);
b3.setBackground(Color.pink);
add(p2);
}
public void actionPerformed(ActionEvent e)
{
}
}