TavernerPOS - Source Code

Clone: 

git clone http://www.librarysmith.co.uk/tavernerPOS

 

Index » tavernerPOS : Blob 492bb6 / src / com / floreantpos / swing / POSLabel.java
package com.floreantpos.swing;

import javax.swing.Icon;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

import com.floreantpos.config.UIConfig;

public class POSLabel extends JLabel {

	public POSLabel(String text, Icon icon, int horizontalAlignment) {
		super(text, icon, horizontalAlignment);

		setFont(UIConfig.largeFont);
	}

	public POSLabel(String text, int horizontalAlignment) {
		this(text,null, horizontalAlignment);
	}

	public POSLabel(String text) {
		this(text, null, JLabel.LEFT);
	}

	public POSLabel(Icon image, int horizontalAlignment) {
		this("", image, horizontalAlignment); //$NON-NLS-1$
	}

	public POSLabel(Icon image) {
		this("", image, SwingConstants.LEFT); //$NON-NLS-1$
	}

	public POSLabel() {
		this("", null, SwingConstants.LEFT); //$NON-NLS-1$
	}

}

Add comment
These comments are moderated so so won't be published until reviewed.