1 /*
2 * DisplayableJLabel.java
3 *
4 * Created on July 31, 2001, 7:25 PM
5 */
6
7 package com.bonevich.javax.swing;
8
9 import javax.swing.JLabel;
10 import javax.swing.Icon;
11
12 /***
13 *
14 * @author Jeffrey Bonevich <bonevich@telocity.com>
15 * @version $Id: DisplayableJLabel.html,v 1.1 2009/03/07 17:56:00 jbonevic Exp $
16 */
17 public class DisplayableJLabel extends JLabel {
18
19 /*** Creates new DisplayableJLabel */
20 public DisplayableJLabel() {
21 super();
22 }
23 public DisplayableJLabel(String text) {
24 super(text);
25 }
26 public DisplayableJLabel(String text, int horizontalAlignment) {
27 super(text,horizontalAlignment);
28 }
29 public DisplayableJLabel(Icon image) {
30 super(image);
31 }
32 public DisplayableJLabel(Icon image, int horizontalAlignment) {
33 super(image,horizontalAlignment);
34 }
35 public DisplayableJLabel(String text, Icon image, int horizontalAlignment) {
36 super(text,image,horizontalAlignment);
37 }
38
39 public String toString()
40 {
41 return getText();
42 }
43 }
This page was automatically generated by Maven