import java.awt.*;
import java.awt.event.*;
public class xie extends Frame
{ TextField t;
Button b;
Button b1;
TextArea text;////////////////////////////////textarea start
public xie()
{
setSize(400,400);
text=new TextArea();///////////////////////////////////textarea
//text.setBackground(Color.red);
text.setBounds(10,10,320,320);
add(text,null);//////////////////////////////////textarea end
b1=new Button("clear");
b1.setBounds(300,350,40,30);
b1.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
hx=0;hy=0;}});
add(b1,null);/////////////////////////////////b1 end
b=new Button("图");
b.setBounds(240,350,30,30);
add(b,null);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);}});//////////////b end
setLayout(null);
t=new TextField();
t.setBounds(10,350,220,30);
add(t,null);
setVisible(true);
}
public static void main(String [] args)
{
new xie();}
60);}}
}
import java.awt.event.*;
public class xie extends Frame
{ TextField t;
Button b;
Button b1;
TextArea text;////////////////////////////////textarea start
public xie()
{
setSize(400,400);
text=new TextArea();///////////////////////////////////textarea
//text.setBackground(Color.red);
text.setBounds(10,10,320,320);
add(text,null);//////////////////////////////////textarea end
b1=new Button("clear");
b1.setBounds(300,350,40,30);
b1.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
hx=0;hy=0;}});
add(b1,null);/////////////////////////////////b1 end
b=new Button("图");
b.setBounds(240,350,30,30);
add(b,null);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);}});//////////////b end
setLayout(null);
t=new TextField();
t.setBounds(10,350,220,30);
add(t,null);
setVisible(true);
}
public static void main(String [] args)
{
new xie();}
60);}}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货