FileDocCategorySizeDatePackage
PaintMethods.javaAPI DocExample803Sun Mar 11 21:03:32 GMT 2001None

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.add("Center", new PaintMethods("Testing 1 2 3"));
		f.addWindowListener(new WindowCloser(f));
		f.pack();
		f.setVisible(true);
	
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);