Test: Unterschied zwischen den Versionen
Aus Byte-Welt Wiki
Zur Navigation springenZur Suche springenZeile 1: | Zeile 1: | ||
− | <code= | + | <code=Java5> |
class RepaintCatcher extends JComponent | class RepaintCatcher extends JComponent | ||
{ | { | ||
Zeile 15: | Zeile 15: | ||
} | } | ||
} | } | ||
− | </code= | + | </code=Java5> |
Version vom 10. Juni 2007, 19:22 Uhr
<code=Java5> class RepaintCatcher extends JComponent {
public RepaintCatcher (JLabel label) { label.setLayout(new BorderLayout()); label.add(this); this.setOpaque(false); } @Override public void paint(Graphics blup) { super.paint(blup); System.out.println("Roar darf die nächste Frage stellen :)"); }
} </code=Java5>