Tag Archives: design pattern

Swing and Design Patterns – Part 4. Mediator Pattern

Assume we have a component hierarchy that looks like the following diagram. Some component on one branch (say a button), wants to update something on another branch (say text in a text field). This scenario occurs very often in complex … Continue reading


Posted in Design Pattern, Swing, Swing Design Pattern | Tagged , , , | Leave a comment

Contructors and Inheritance in Javascript

  There is a really great article on inheritance in Javascript tucked away in the Rochester Institute of Technology website : http://www.cs.rit.edu/~atk/JavaScript/manuals/jsobj/ Dated from 1997 and very hard to find using Google, this article offered me the perfect solution to … Continue reading


Posted in JavaScript | Tagged , | Leave a comment

MVC pattern in Javascript. An example..

If you are unfortunate enough to be a Java developer who has to develop in Javascript, you will want to start using design patterns, or your javascript code is quickly going to resemble a train wreck. One of the most … Continue reading


Posted in Design Pattern, RIA | Tagged , , , | 2 Comments

Swing and Design Patterns – Part 3. Command Pattern

  Command Pattern The command pattern is a commonly used pattern which encapsulates a method call or action-like code into a single class. The advantages of being able to package a method (or methods) into a class become evident when … Continue reading


Posted in Design Pattern, Swing Design Pattern | Tagged , , | 1 Comment

Swing and Design Patterns – Part 2. Delegate Pattern

Lets look at our diagram again and examine another pattern. Delegate Pattern (aka Facade) The delegate or facade pattern should be the backbone of all java Swing application (for that matter, not just Swing, but any desktop application that needs … Continue reading


Posted in Design Pattern, Swing Design Pattern | Tagged , , , , , , | Leave a comment

Swing and Design Patterns – Part 1. Decorator Pattern

I am going to talk a little about my experiences with design patterns, specifically when building a Swing application. Being the visual guy that I am, I decided to put together a little visual schematic showing the four most important … Continue reading


Posted in Design Pattern, Swing Design Pattern | Tagged , , , | 6 Comments