package com.marinilli.b2.c10;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
 * Chapter 10 - Drawing extension
 * @author Mauro Marinilli
 * @version 1.0
 */
public class DrawEditor extends JDialog {
  JPanel jPanel1 = new JPanel();
  JButton closeButton = new JButton();

  public DrawEditor(JFrame jf) {
    super(jf);
    setTitle("Drawing Editor Plug-in");
    closeButton.setText("close");
    closeButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(ActionEvent e) {
        dispose();
      }
    });
    this.getContentPane().setBackground(Color.white);
    this.getContentPane().add(jPanel1, BorderLayout.SOUTH);
    jPanel1.add(closeButton, null);
    setSize(200,220);
    setVisible(true);
  }
}