返回列表 发帖
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class 劳资会娶你 extends Applet implements actiolListener;
{
     int year=2006;
     string lz;
     string nvning;
     text a,b;
     button c,d,e;
     
     public void init()
     {
           a=new text("Do you have been married?" );
           b=new text(" " );
           c=new botton("Yes!" );
           d=new botton("No!" );
           e=new botton("i want to marty you!" )
           c.add actionListener(this);
           d.add actionListener(this);
           e.add actionListener(this);
     }

     public void actionPerformed(ActionEvent e)
     {
          if e.getsource==("Yes!" )
               b.setText("i'll kill the dog-man!" );
          if e.getsource==("No!" )
               b.setText("i'll wait for you forever!" );
          if e.getsource==("i want to marty you!" )
               b.setText("算你识相!" );
     }
}
莪鍉谁﹖鉨鍉谁﹖谁鍉谁鍀谁.
莪愛鉨,  鉨愛谁,  谁會愛仩谁.

TOP

五笔那个蛮有意思,启发不少
莪鍉谁﹖鉨鍉谁﹖谁鍉谁鍀谁.
莪愛鉨,  鉨愛谁,  谁會愛仩谁.

TOP

返回列表