// <editor-fold defaultstate="collapsed" desc=" main ">
  public static void main(String args[]) {

    try {
      javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {
      throw new RuntimeException(e);
    }

    Dlg_billing_report2 dialog = Dlg_billing_report2.create(new javax.swing.JFrame(), true);
    //        dialog.setVisible(true);

    Toolkit tk = Toolkit.getDefaultToolkit();
    int xSize = ((int) tk.getScreenSize().getWidth());
    int ySize = ((int) tk.getScreenSize().getHeight());

    dialog.setSize(xSize, ySize);
    dialog.setVisible(true);
  }
  public static Dlg_billing_report2 create(
      java.awt.Window parent, java.awt.Dialog.ModalityType modalType) {

    if (parent instanceof java.awt.Frame) {

      Dlg_billing_report2 dialog = dialogContainer.get(parent);

      if (dialog == null) {
        dialog = new Dlg_billing_report2((java.awt.Frame) parent, false);
        dialog.setModalityType(modalType);
        dialogContainer.put(parent, dialog);
        java.util.logging.Logger.getAnonymousLogger()
            .log(Level.INFO, "instances: {0}", dialogContainer.size());
        dialog.setThisRef(dialog);
        return dialog;
      } else {
        dialog.setModalityType(modalType);
        return dialog;
      }
    }

    if (parent instanceof java.awt.Dialog) {
      Dlg_billing_report2 dialog = dialogContainer.get(parent);

      if (dialog == null) {
        dialog = new Dlg_billing_report2((java.awt.Dialog) parent, false);
        dialog.setModalityType(modalType);
        dialogContainer.put(parent, dialog);
        java.util.logging.Logger.getAnonymousLogger()
            .log(Level.INFO, "instances: {0}", dialogContainer.size());
        dialog.setThisRef(dialog);
        return dialog;
      } else {
        dialog.setModalityType(modalType);
        return dialog;
      }
    }

    return null;
  }
 public void nullify() {
   myRef.setVisible(false);
   myRef = null;
 }