From d338f24f085de2a9c57ee418ac7e3116df40225c Mon Sep 17 00:00:00 2001 From: skylarmt Date: Sun, 29 Mar 2015 14:24:09 -0600 Subject: [PATCH] Graph multiple functions at once with semicolon --- src/net/apocalypselabs/symat/Graph.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/net/apocalypselabs/symat/Graph.java b/src/net/apocalypselabs/symat/Graph.java index 6208032..f55982f 100644 --- a/src/net/apocalypselabs/symat/Graph.java +++ b/src/net/apocalypselabs/symat/Graph.java @@ -243,7 +243,10 @@ public class Graph extends javax.swing.JInternalFrame { }// //GEN-END:initComponents private void plotBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_plotBtnActionPerformed - new GraphThread(inBox.getText()).start(); + String[] frmlas = inBox.getText().split(";"); + for (String f : frmlas) { + new GraphThread(f).start(); + } }//GEN-LAST:event_plotBtnActionPerformed /** @@ -393,7 +396,7 @@ public class Graph extends javax.swing.JInternalFrame { private void inBoxKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_inBoxKeyTyped if (evt.getKeyChar() == '\n') { - plotBtnActionPerformed(null); + plotBtn.doClick(); } }//GEN-LAST:event_inBoxKeyTyped