另类爱[JAVA版]
任鹏娟吧
全部回复
仅看楼主
level 5
云风清 楼主
import java.awt.*;import java.applet.*;import java.awt.event.*;public class mylove extends 前世 implements 今生{public 相识 激动;public 相知 HAPPY;public 相恋 痛苦;public void init(){激动=new 相识("一见钟情");HAPPY=new 相识("HAPPY EVERY DAY");痛苦=new 相恋("劫数");add(激动);add(HAPPY);add(痛苦);bRed.addActionListener(this);bGreen.addActionListener(this);myLOVE=Color.RED;}public void paint(Graphics g){g.setLOVE(myHEART);g.fillOval(50,50,50,50);}public void actionPerformed(ActionEvent e){if(e.getActionCommand().equals("一见钟情"))myheart=happy;else if(e.getActionCommand().equals("HAPPY EVERY DAY")) myheart=go on forever;else if(e.getActionCommand().equals("劫数")) myheart=never forgot;repaint();}}
2004年11月21日 02点11分 1
level 0
一天不见,又拽了
2004年11月21日 06点11分 2
1