This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Patterns in user interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Patterns in user interface" Watch "Patterns in user interface" New topic

Patterns in user interface

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Do you think it is necessary to use design patterns in the user interface (Command, Observer...)? Or is it just enough if you have one listener class for all the user input?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Jukka,
Don't use patterns just for the sake of using them, use them because they make sense in a particular situation. I used three patterns in my client design: Facade, Observer and Mediator. Your design will probably dictate the use of some other combination of patterns. Just remember that the main goal in the use of patterns is to make your software components reusable.
Michael Morris

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I agree. Here's the link:
subject: Patterns in user interface