pack();
}// </editor-fold>//GEN-END:initComponents
private void addValueBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addValueBtnActionPerformed
CreateMathExpressionDlg dlg = new CreateMathExpressionDlg(this, context, new ContextFilter() {
@Override
public Context getChildContext(ContextGroup group) {
return context;
}
});
dlg.setVisible(true);
if(dlg.isOK()) {
MathExpressionConstAbstract constValue =
(MathExpressionConstAbstract) dlg.getValue();
try {
value.addValue(constValue);
MathExpressionConstAbstract[] vals = value.getValues();
mainList.setListData(vals);