예제 #1
0
 private void onReset() {
   m_underComp.m_conId = 0;
   m_underComp.m_delta = 0;
   m_underComp.m_price = 0;
   m_reset = true;
   setVisible(false);
 }
예제 #2
0
  private void onOk() {

    try {
      int conId = Integer.parseInt(m_txtConId.getText());
      double delta = Double.parseDouble(m_txtDelta.getText());
      double price = Double.parseDouble(m_txtPrice.getText());

      m_underComp.m_conId = conId;
      m_underComp.m_delta = delta;
      m_underComp.m_price = price;
      m_ok = true;
      setVisible(false);
    } catch (Exception e) {
      Main.inform(this, "Error - " + e);
    }
  }