home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Event;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Image;
- import java.awt.Label;
- import java.awt.LayoutManager;
- import java.awt.Panel;
-
- public class Love extends Applet {
- final int MenuBarHeight;
- public Image Image1;
- public Label Label2;
- public Label Label3;
- public Label Label4;
- public Label Label5;
- public Label Label6;
- public Label Label7;
- public Label Label8;
- public Label Label9;
- public Panel Panel1;
- public Panel Panel2;
- public Label Label1;
-
- public void init() {
- ((Component)this).setForeground(Color.black);
- ((Component)this).setBackground(Color.white);
- ((Component)this).setFont(new Font("Dialog", 1, 12));
- ((Container)this).setLayout((LayoutManager)null);
- this.Image1 = ((Applet)this).getImage(((Applet)this).getCodeBase(), "oneeye.gif");
- this.Label2 = new Label("Could live I like one-eyed fish", 0);
- this.Label2.setFont(new Font("Helvetica", 0, 12));
- this.Label3 = new Label("Could love I like one-eyed fish", 0);
- this.Label3.setFont(new Font("Helvetica", 0, 12));
- this.Label4 = new Label("Like the 比目 lived swimming together", 0);
- this.Label4.setFont(new Font("Helvetica", 0, 12));
- this.Label5 = new Label(" till they died to live like other two-eyed fish", 0);
- this.Label5.setFont(new Font("Helvetica", 0, 12));
- this.Label6 = new Label("Could love I ", 0);
- this.Label6.setFont(new Font("Helvetica", 0, 12));
- this.Label7 = new Label("like one-eyed 比目 ", 0);
- this.Label7.setFont(new Font("Helvetica", 0, 12));
- this.Label8 = new Label(". . .", 0);
- this.Label8.setFont(new Font("Helvetica", 1, 11));
- this.Label9 = new Label("- from <One-eyed fish's love> -", 0);
- this.Label9.setFont(new Font("Helvetica", 0, 11));
- this.Panel1 = new Panel();
- this.Panel1.setLayout((LayoutManager)null);
- this.Panel1.setForeground(Color.black);
- this.Panel1.setBackground(Color.yellow);
- this.Panel1.setFont(new Font("Dialog", 1, 12));
- this.Panel2 = new Panel();
- this.Panel2.setLayout((LayoutManager)null);
- this.Panel2.setForeground(Color.black);
- this.Panel2.setBackground(Color.red);
- this.Panel2.setFont(new Font("Dialog", 1, 12));
- this.Label1 = new Label("One-eyed fish's love", 0);
- this.Label1.setFont(new Font("Helvetica", 1, 12));
- this.Panel2.add(this.Label1);
- this.Panel1.add(this.Panel2);
- ((Container)this).add(this.Panel1);
- ((Container)this).add(this.Label9);
- ((Container)this).add(this.Label8);
- ((Container)this).add(this.Label7);
- ((Container)this).add(this.Label6);
- ((Container)this).add(this.Label5);
- ((Container)this).add(this.Label4);
- ((Container)this).add(this.Label3);
- ((Container)this).add(this.Label2);
- this.InitialPositionSet();
- }
-
- public void start() {
- }
-
- public void stop() {
- }
-
- public void destroy() {
- }
-
- public void paint(Graphics var1) {
- var1.drawImage(this.Image1, 272, 11, 113, 57, this);
- }
-
- public void InitialPositionSet() {
- ((Applet)this).resize(393, 245);
- this.Label2.reshape(20, 55, 211, 16);
- this.Label3.reshape(20, 75, 229, 16);
- this.Label4.reshape(20, 95, 276, 16);
- this.Label5.reshape(20, 115, 299, 16);
- this.Label6.reshape(20, 135, 88, 16);
- this.Label7.reshape(20, 156, 138, 16);
- this.Label8.reshape(21, 179, 35, 16);
- this.Label9.reshape(24, 218, 216, 18);
- this.Panel1.reshape(10, 13, 252, 34);
- this.Panel2.reshape(3, 3, 220, 24);
- this.Label1.reshape(4, 3, 180, 18);
- }
-
- public boolean handleEvent(Event var1) {
- if (var1.id == 201 && var1.target == this) {
- this.Love_WindowDestroy(var1.target);
- } else if (var1.id == 503 && var1.target == this) {
- this.Love_MouseMove(var1.target, var1.x, var1.y, var1.modifiers);
- }
-
- return super.handleEvent(var1);
- }
-
- public void Love_WindowDestroy(Object var1) {
- System.exit(0);
- }
-
- public void Love_MouseMove(Object var1, int var2, int var3, int var4) {
- this.Panel1.setBackground(new Color(255, var2, var3));
- this.Panel2.setBackground(new Color(255, var3, var2));
- this.Panel1.repaint();
- this.Panel2.repaint();
- }
- }
-