super(s);
"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);
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);
System.out.println("Paint"); super.paint(g);
System.out.println("repaint"); super.repaint();
System.out.println("update"); super.update(g);