FileDocCategorySizeDatePackage
PaintMethods.javaAPI DocExample802Thu Mar 25 21:34:32 GMT 2004None

PaintMethods

public class PaintMethods extends JLabel
Standalone GUI program that shows paint, repaint, and update

Fields Summary
Constructors Summary
public PaintMethods(String s)

		super(s);
	
Methods Summary
public static voidmain(java.lang.String[] av)
"main program" method - construct and show

		final JFrame f = new JFrame("PaintMethods demo");
		f.getContentPane().add("Center", new PaintMethods("Testing 1 2 3"));
		f.pack();
		f.setVisible(true);
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	
public voidpaint(java.awt.Graphics g)

		System.out.println("Paint");
		super.paint(g);
	
public voidrepaint()

		System.out.println("repaint");
		super.repaint();
	
public voidupdate(java.awt.Graphics g)

		System.out.println("update");
		super.update(g);