01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.common;
05:
06: import javax.swing.JLabel;
07:
08: public class ArrowLabel extends JLabel {
09: 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: }
|