1 54 55 package com.mullassery.act.gui.components; 56 57 import java.awt.Dimension ; 58 59 import javax.swing.JLabel ; 60 import javax.swing.SwingConstants ; 61 62 import com.mullassery.act.gui.TextData; 63 64 69 public class TLabel extends JLabel implements TextData { 70 71 72 public TLabel() { 73 } 74 75 76 public TLabel(String val) { 77 this(val, SwingConstants.RIGHT); 78 } 79 80 81 public TLabel(String val, int align) { 82 super(val, align); 83 setPreferredSize(new Dimension (200, 20)); 84 85 } 86 } 87 | Popular Tags |