package com.marinilli.b2.c7.launcher;
import java.awt.*;
import javax.swing.*;

/**
 * Chapter 7 - the Installer-dependent abstract dialog.
 * all installer sub-dialogs extends this one
 *
 * @author Mauro Marinilli
 * @version 1.0
 */
public abstract class InstallerDialog extends JDialog {
  protected CDLauncher installer;

  /**
   *  Constructor
   */
  public InstallerDialog(CDLauncher inst, String title) {
    super(inst, title , true);
    installer = inst;
    Point p = installer.getLocation();
    p.translate(60,40);
    setLocation(p);
    graphInit();
  }

  /**
   *  this method is implemented by subclasses
   */
  abstract void graphInit();

}