cohesion...i fail to see how my code is not cohesive. perhaps you could point it out to me. i really should read code people post. Rob's code addresses the one thing i didn't like about mine. the repeated code "if (!text.equals(""))"
ActionListeners, like any other class, should be cohesive. They should do one thing.
i argue that it does do one thing. it handles the action events
i might change it to two event handlers though to get rid of the repeated if's
the only other "problem" i see is, from a MVC point of view, i am mixing the model, view, and controller in my event handler. however it is a very small program.