日期:2014-05-20  浏览次数:20623 次

sos!!各位好心人给妹妹看一下,哪儿出错了?在线等待!
import   java.awt.*;
import   java.awt.event.*;
public   class   E5_2{
public   static   void   main(String   args[]){
Myframe   m=new   Myframe();
m.setVisible(true);
}  
}
class   Myframe   extends   Frame{
Mypanel   mp=new   Mypanel();
Myframe(){
setSize(300,300);
add(mp);
}

}
class   Mypanel   extends   Panel   implements   ActionListener{
public   String   s;
public   int   c;
public   Mypanel(){
        Button   b=new   Button( "按钮 ");
Label   l=new   Label( "标签 ");
add(b);
add(l);
setLayout(new   FlowLayout());
b.addActionListener(this);
}
public   void   actionPerformed(ActionEvent   e){
if(e.getSource()==b){
c++;
s=new   String( "您单击了 "+c+ "次 ");
l.setText( "哈哈 ");
}
}
}


------解决方案--------------------
真快
------解决方案--------------------
楼主行呀。
------解决方案--------------------
奇怪呀,怎么你通过的时间是2007-05-22 08:46:32 ,发表时间:2007-05-22 08:46:39
通过的时间怎么比发表时间还快几秒?
------解决方案--------------------
莫非lz又时光机器?
------解决方案--------------------
汗,楼主你太厉害了. 通过的时间怎么比发表时间还快几秒.

------解决方案--------------------
LZ是超人。。。。
------解决方案--------------------
有意思!!