/*
This file is part of the software framework JStatCom,
a library for building applications for data based analysis.
Copyright (C) 2000-2005 Alexander Benkwitz, Markus Kraetzig
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
package com.jstatcom.component;
import javax.swing.JLabel;
/**
* Covenience label class that can display text with more than one line.
*
* A multi line label text is set with the usual setText
* method. The lines are separated by \n, for example
* new MultiLineLabel("line1\nline2\nline3").
*
* @author A. Benkwitz, Markus Kraetzig
* @see MultiLineLabelUI
*/
public class MultiLineLabel extends JLabel {
{
MultiLineLabel.this.setUI(new MultiLineLabelUI());
}
/**
* See Superclass.
*/
public MultiLineLabel() {
super();
}
/**
* See Superclass.
*/
public MultiLineLabel(String text) {
super(text);
}
/**
* See Superclass.
*/
public MultiLineLabel(String text, int horizontalAlignment) {
super(text, horizontalAlignment);
}
/**
* See Superclass.
*/
public MultiLineLabel(
String text,
javax.swing.Icon icon,
int horizontalAlignment) {
super(text, icon, horizontalAlignment);
}
/**
* See Superclass.
*/
public MultiLineLabel(javax.swing.Icon image) {
super(image);
}
/**
* See Superclass.
*/
public MultiLineLabel(javax.swing.Icon image, int horizontalAlignment) {
super(image, horizontalAlignment);
}
}
Ads help maintain this website.