/* Listing3611.java */

import java.awt.*;
import javax.swing.*;

public class Listing3611
extends JFrame
{
  public Listing3611()
  {
    super("Debug-Grafik");
    addWindowListener(new WindowClosingAdapter(true));
    Container cp = getContentPane();
    DebugGraphics.setFlashTime(100);
    DebugGraphics.setFlashCount(3);
    JButton button = new JButton("DEBUG-Button");
    RepaintManager repaintManager = RepaintManager.currentManager(button);
    repaintManager.setDoubleBufferingEnabled(false);
    button.setDebugGraphicsOptions(DebugGraphics.FLASH_OPTION);
    cp.add(button);
  }

  public static void main(String[] args)
  {
    Listing3611 frame = new Listing3611();
    frame.setLocation(100, 100);
    frame.setSize(300, 200);
    frame.setVisible(true);
  }
}