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