import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class FindMin extends Applet implements ActionListener
{
Label result;
TextField in1,in2,in3;
Button btn1,btn2;
int a=0,b=0,c=0,min;
public void init()
{
result=new Label("请先输入三个待比较的整数");
in1=new TextField(5);
in2=new TextField(5);
in3=new TextField(5);
btn1=new Button("比较");
btn2=new Button("关闭");
add(in1);
add(in2);
add(in3);
add(btn1);
add(btn2);
add(result);
btn1.addActionListener(this);
btn2.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==btn1)
{a=Integer.parseInt(in1.getText());
b=Integer.parseInt(in2.getText());
c=Integer.parseInt(in3.getText());
min=a;
if(b min=b; if(c min=c; result.setText("三数中最小值是:"+min); } else