Ejemplo n.º 1
0
  /**
   * Create the dialog.
   *
   * @param voctManager
   */
  public SARInputCommon(VOCTManagerCommon voctManager) {
    this.voctManager = voctManager;

    voctManager.addListener(this);

    setTitle("SAR Operation");
    this.setModal(true);
    this.setResizable(false);

    // setBounds(100, 100, 559, 733);
    setBounds(100, 100, 559, 500);

    masterPanel = new JPanel();

    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(masterPanel, BorderLayout.CENTER);

    buttomBar();

    // We initialize it with the init pane, this is where you select the
    // type of operation

    masterPanel.setLayout(new CardLayout());

    initPanel();
    inputPanel();
    calculationsPanel();

    // CardLayout cl = (CardLayout) (masterPanel.getLayout());
    // backButton.setEnabled(true);
    //
    // inititateSarType();
    //
    // System.out.println("Setting panel to " + currentCard);
    //
    // // The type select determines which panel we show
    // cl.show(masterPanel, currentCard);
  }