This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
It is sorta covered in the JavaRanch Style Guide.
subject: Patterns in user interface
Similar Threads
Debugging web user interface
JAVA move vertical scroll bar programatically by moving horizontal scroll bar.
Java Patterns
Develop an application like JConsole
Writing an Interface