KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > Insets


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9  
10 */

11
12 package swingwt.awt;
13
14
15 public class Insets implements Cloneable JavaDoc {
16
17     public Insets() { }
18     public Insets(int top, int left, int bottom, int right) {
19         this.top = top;
20         this.left = left;
21         this.bottom = bottom;
22         this.right = right;
23     }
24   
25     public int top;
26     public int left;
27     public int bottom;
28     public int right;
29     
30     public Object JavaDoc clone() {
31         try {
32             return super.clone();
33         } catch (Exception JavaDoc e) {
34             // never gonna happen
35
}
36         
37         return null;
38     }
39 }
40
41
Popular Tags