Graph multiple functions at once with semicolon
This commit is contained in:
parent
b4529d47e6
commit
d338f24f08
@ -243,7 +243,10 @@ public class Graph extends javax.swing.JInternalFrame {
|
|||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void plotBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_plotBtnActionPerformed
|
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
|
}//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
|
private void inBoxKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_inBoxKeyTyped
|
||||||
if (evt.getKeyChar() == '\n') {
|
if (evt.getKeyChar() == '\n') {
|
||||||
plotBtnActionPerformed(null);
|
plotBtn.doClick();
|
||||||
}
|
}
|
||||||
}//GEN-LAST:event_inBoxKeyTyped
|
}//GEN-LAST:event_inBoxKeyTyped
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user