Test

Aus Byte-Welt Wiki
Zur Navigation springenZur Suche springen

<code=Java> 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=Java>