home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / earthlink / nscomm / java40.jar / java / awt / Insets.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  1.1 KB  |  30 lines

  1. package java.awt;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class Insets implements Cloneable, Serializable {
  6.    public int top;
  7.    public int left;
  8.    public int bottom;
  9.    public int right;
  10.  
  11.    public Insets(int var1, int var2, int var3, int var4) {
  12.       this.top = var1;
  13.       this.left = var2;
  14.       this.bottom = var3;
  15.       this.right = var4;
  16.    }
  17.  
  18.    public String toString() {
  19.       return this.getClass().getName() + "[top=" + this.top + ",left=" + this.left + ",bottom=" + this.bottom + ",right=" + this.right + "]";
  20.    }
  21.  
  22.    public Object clone() {
  23.       try {
  24.          return super.clone();
  25.       } catch (CloneNotSupportedException var1) {
  26.          throw new InternalError();
  27.       }
  28.    }
  29. }
  30.