I can use numbers and stuff like
num1 = Float.parseFloat(txt1.getText());
but I am looking to get words from a text field, then do calculations based on which word. Like:
String input1;
if (input1.equalsIgnorecase("Word")) {
2 + 2; }
I just don't know how to do that on a jform.