Updating jtextarea

Silently ignoring invalid input and doing nothing in the method is extremely poor advice because it hides the problem.

Yes check if the object equals null before you invoke a method on it or try to access a variable it might have.

But Swing collapses the view and controller parts of each component into a single UI (user-interface) object.The first Swing prototype followed a traditional MVC separation in which each component had a separate model object and delegated its look-and-feel implementation to separate view and controller objects.We quickly discovered that this split didn't work well in practical terms because the view and controller parts of a component required a tight coupling (for example, it was very difficult to write a generic controller that didn't know specifics about the view).Just a few days ago I stumbled upon Gitter service and shortly after looking into a few example usages I decided to try it out.Early on, MVC was a logical choice for Swing because it provided a basis for meeting the first three of our design goals within the bounds of the latter two.

Leave a Reply