/** * Sets a new string to be used as function */ public void setExpressionString(String newString) { // Parse the new expression myParser.parseExpression(newString); // Find out whether there was an error in the expression hasError = myParser.hasError(); if (hasError) exprField.setForeground(Color.red); else exprField.setForeground(Color.black); changedFunction = true; }
/** * Sets a new string to be used as function */ public void setExpressionString(String newString) { // Parse the new expression myParser.parseExpression(newString); // Find out whether there was an error in the expression hasError = myParser.hasError(); if (hasError) exprField.setForeground(Color.red); else exprField.setForeground(Color.black); changedFunction = true; }
/** * Parses a new expression */ public void setExpressionString(String newString) { nEvals = 0; //Parse the new expression myParser.parseExpression(newString); //Find out whether there was an error in the expression hasError = myParser.hasError(); if (hasError) exprField.setForeground(Color.red); else exprField.setForeground(Color.black); }
/** * Parses a new expression */ public void setExpressionString(String newString) { nEvals = 0; //Parse the new expression myParser.parseExpression(newString); //Find out whether there was an error in the expression hasError = myParser.hasError(); if (hasError) exprField.setForeground(Color.red); else exprField.setForeground(Color.black); }
private void showInfo(String message) { fStatusLine.setFont(PLAIN_FONT); fStatusLine.setForeground(Color.black); fStatusLine.setText(message); }
private void showStatus(String status) { fStatusLine.setFont(PLAIN_FONT); fStatusLine.setForeground(Color.red); fStatusLine.setText(status); } /**
exprField.setName ("exprField"); exprField.setFont (new Font ("Dialog", 0, 11)); exprField.setForeground (Color.black); exprField.addTextListener (new java.awt.event.TextListener () { public void textValueChanged (java.awt.event.TextEvent evt) {
exprField.setName ("exprField"); exprField.setFont (new Font ("Dialog", 0, 11)); exprField.setForeground (Color.black); exprField.addTextListener (new java.awt.event.TextListener () { public void textValueChanged (java.awt.event.TextEvent evt) {
ieendRadius.setForeground(Color.RED); IJ.showStatus("Error: Ending radius out of range!"); return false; ieendRadius.setForeground(Color.BLACK); if (!validPath) pathFieldForeground = Color.RED; ieimgPath.setForeground(pathFieldForeground); ieprimaryBranches.setEnabled(!inferPrimary);
exprField.setName ("exprField"); exprField.setFont (new java.awt.Font ("Dialog", 0, 11)); exprField.setForeground (java.awt.Color.black); exprField.addTextListener (new java.awt.event.TextListener () { public void textValueChanged (java.awt.event.TextEvent evt) {
exprField.setName ("exprField"); exprField.setFont (new java.awt.Font ("Dialog", 0, 11)); exprField.setForeground (java.awt.Color.black); exprField.addTextListener (new java.awt.event.TextListener () { public void textValueChanged (java.awt.event.TextEvent evt) {
findField.setForeground(SystemColor.controlText); findField.setVisible(true); findField.addKeyListener(new FindFieldKeyListener());
fStatusLine.setFont(PLAIN_FONT); fStatusLine.setEditable(false); fStatusLine.setForeground(Color.red);