FileDocCategorySizeDatePackage
MyLabel.javaAPI DocExample631Sat Feb 05 12:00:28 GMT 2000None

MyLabel

public class MyLabel extends JLabel
Dummy Canvas class, to represent the real main part of an application *
author
Ian Darwin, http://www.darwinsys.com

Fields Summary
int
width
int
height
int
pad
Constructors Summary
MyLabel(int w, int h)

		this("", w, h);
	
MyLabel(String l, int w, int h)

		super(l, JLabel.CENTER);
		width = w; height = h;
	
MyLabel(String l, int w, int h, Color c)

		this(l, w, h);
		setBackground(c);
	
Methods Summary
public java.awt.DimensiongetMinimumSize()

		return new Dimension(width, height);
	
public java.awt.DimensiongetPreferredSize()

		return new Dimension(width+pad, height+pad);