home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / 1&1 / java.z / java_301 / java / awt / Insets.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-10-20  |  1.2 KB  |  28 lines

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