guilabel.java

来自「JAVA 实现虹膜识别(完整)」· Java 代码 · 共 56 行

JAVA
56
字号
package IrisRecog;

/**
 * GUILabel.java
 * 
 * Extends the JLabel swing component to provide specific color and functionality.
 *
 * @owner Michael Huffman
 * @author Team 6: A. Bare, I. Chaugule,M. Huffman, M. Pearson, C. Schell
 * @version 0.0.1
 *
 * 	CSC 480 Section 2
 * 	Fall 2005
 * 	10/1/05
 */
 
import javax.swing.*;

public class GUILabel extends JLabel
{
	/**
	 * Default constructor with blank label.
	 */
	public GUILabel()
	{
		super();
	
		this.setBackground(Constants.CLR_DEFAULT_BACKGROUND);
	}
		
	/**
	 * Constructor for creating a new GUI label with an image icon.
	 *
	 * @param img The image icon to display in the label
	 */
	public GUILabel(ImageIcon img)
	{
		super(img);
	
		this.setBackground(Constants.CLR_DEFAULT_BACKGROUND);
	}

	/**
	 * Constructor for creating a new GUI label with text and horizontal alignment.
	 *
	 * @param s The string to display in the label
	 * @param aling The horizontal alignment of the text
	 */
	public GUILabel(String s, int align)
	{
		super(s, align);
	
		this.setBackground(Constants.CLR_DEFAULT_BACKGROUND);
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?