How would I display certain output text if the text entered equaled "text".
If that makes any sense.

So lets say you enter a question into a JTextField.
You press a button that submits the text....