I'm trying to take the value entered in a jTextField, parse it, then use it to calculate an output.
In every other application I've used this is really simple. There is some form of event that will trigger when the text is changed, and I can use that event to perform the actions I want. In netbeans though, no such luck. The closest to an on changed event I could find was InputMethodTextChanged, which doesn't seem to work how I think it does.
Every resource online says to use a documentListener, but no resource that I can find actually gives information on how to use it. I'm sure for an experienced programmer the information provided is more than enough, but an experienced programmer already knows how to use it.
Could somebody please explain how DocumentListener works, and how to use it clearly enough for a novice programmer to understand? Stack Overflow always shows up quickly in Google Searches, and at the moment there is no newbie friendly source of information on this that is easy to find, if at all.