home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 August / maximum-cd-2000-08.iso / TeVeoLive / data1.cab / Program_Files / Jload.jar / Jload$2.class (.txt) < prev   
Encoding:
Java Class File  |  2000-05-24  |  1.4 KB  |  41 lines

  1. import java.awt.Graphics;
  2. import java.awt.event.MouseAdapter;
  3. import java.awt.event.MouseEvent;
  4. import java.net.MalformedURLException;
  5. import java.net.URL;
  6.  
  7. final class Jload$2 extends MouseAdapter {
  8.    // $FF: synthetic field
  9.    private final Jload this$0;
  10.  
  11.    // $FF: synthetic method
  12.    Jload$2(Jload var1) {
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void mousePressed(MouseEvent var1) {
  17.       int var2 = var1.getX();
  18.       int var3 = var1.getY();
  19.       if (var2 >= this.this$0.xLeftBoxClick && var3 >= this.this$0.yTopBoxClick && var2 < this.this$0.xRightBoxClick && var3 < this.this$0.yBottomBoxClick) {
  20.          try {
  21.             URL var4 = new URL("http://www.teveo.com");
  22.             this.this$0.getAppletContext().showDocument(var4);
  23.          } catch (MalformedURLException var5) {
  24.          }
  25.  
  26.       } else if (var2 >= this.this$0.xLeftStatusClick && var3 >= this.this$0.yTopStatusClick && var2 < this.this$0.xRightStatusClick && var3 < this.this$0.yBottomStatusClick) {
  27.          this.this$0.fStatusEnabled = (this.this$0.fStatusEnabled + 1) % 2;
  28.       } else {
  29.          this.this$0.fMousePressed = 1;
  30.          this.this$0.DisplayNetInfo();
  31.          this.this$0.DisplayInfo("");
  32.       }
  33.    }
  34.  
  35.    public void mouseReleased(MouseEvent var1) {
  36.       Graphics var2 = this.this$0.getGraphics();
  37.       var2.clearRect(0, 0, this.this$0.app_width, this.this$0.app_height);
  38.       this.this$0.fMousePressed = 0;
  39.    }
  40. }
  41.