KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > common > ArrowLabel


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin.common;
5
6 import javax.swing.JLabel JavaDoc;
7
8 public class ArrowLabel extends JLabel JavaDoc {
9   public ArrowLabel() {
10     super(new ArrowIcon());
11     setOpaque(false);
12   }
13
14   public void setDirection(int direction) {
15     ((ArrowIcon)getIcon()).setDirection(direction);
16   }
17
18   public int getDirection() {
19     return ((ArrowIcon)getIcon()).getDirection();
20   }
21 }
22
Popular Tags