public GraphSpentWorkDialog(JFrame owner) {
   super(owner);
   Models m = Scrummer.getModels();
   _metricModel = m.getMetricModel();
   _metricModel.addMetricListener(this);
   setTitle(i18n.tr("Sprint burndown chart"));
 }
  public ImpedimentStatusRemove(JFrame parent) {
    super(parent);
    setTitle(i18n.tr("Remove Impediment Status"));

    Models m = Scrummer.getModels();
    _impedimentModel = m.getImpedimentModel();
    _impedimentModel.addImpedimentListener(this);

    int k = 10;
    Panel.setBorder(
        Util.createSpacedTitleBorder(k, k, k, k, i18n.tr("Impediment Status"), 0, k, k, k));

    FormBuilder fb = new FormBuilder(Panel);
    _impedimentStatusInput = fb.addComboBoxInput(i18n.tr("Status") + ":");
    _impedimentStatusInput.setIVModel(_impedimentModel.getImpedimentStatusComboBoxModel());

    BottomPanel.setBorder(BorderFactory.createEmptyBorder(0, k, k, k - 3));

    OK.setText(i18n.tr("Remove"));
    setSize(320, 150);
  }
  /**
   * Constructor
   *
   * @param owner parent frame
   */
  public TaskTypeRemoveDialog(Frame owner) {
    super(owner, ModalityType.APPLICATION_MODAL);

    setTitle(i18n.tr("Remove task type"));

    _tasktypeModel = Scrummer.getModels().getTaskTypeModel();
    _tasktypeComboBoxModel = _tasktypeModel.getTaskTypeComboBoxModel();

    _tasktypeModel.addTaskTypeListener(this);

    int k = 10;

    Panel.setBorder(
        Util.createSpacedTitleBorder(k, k, k, k, i18n.tr("Select task type"), 0, k, k, k));

    _formBuilder = new FormBuilder(Panel);
    _tasktypeInput = _formBuilder.addComboBoxInput(i18n.tr("Task type") + ":");
    _tasktypeInput.setIVModel(_tasktypeComboBoxModel);

    BottomPanel.setBorder(BorderFactory.createEmptyBorder(0, k, k, k));

    setSize(new Dimension(320, 150));
    Util.centre(this);
  }