KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > border > EtchedBorder


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    $Log: EtchedBorder.java,v $
11    Revision 1.3 2003/12/14 09:13:38 bobintetley
12    Added CVS log to source headers
13
14 */

15
16 package swingwtx.swing.border;
17
18 import swingwt.awt.*;
19
20 public class EtchedBorder extends AbstractBorder implements Border {
21     public static final int RAISED = 0;
22     public static final int LOWERED = 1;
23     protected int etchType = RAISED;
24     
25     public EtchedBorder() { this(LOWERED); }
26     public EtchedBorder(int etchType) { this(etchType, null, null); }
27     public EtchedBorder(Color highlight, Color shadow) { this(LOWERED, highlight, shadow); }
28     public EtchedBorder(int etchType, Color highlight, Color shadow) { this.etchType = etchType; }
29     
30 }
31
Popular Tags