Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

pattern for GUI development

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little new to the pattern idea but it seems like I have a situation where a pattern may help.
I am beginning to build GUI screens for an application. It seems that I should be able to build the screens and centralize the event handling into one class. I would like to separate the GUI from the business logic as much as possible because I will not be involved in implementing the business logic. My idea is to have one central class that handles all of the GUI events and in turn knows what business logic (objects) to call in order to process the event. Finally, this event handler will update the GUI component. I think this is similar to the MVC architecture used for the swing components.
I would think this concept has been played out before and is available in the form of a pattern that may prevent me from making stupid mistakes.
Any input would be greatly appreciated. Thank you.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey David,
you r on the same boat as me...
i am also designing a similar application....
the name of that pattern is "Facade"....
cheers,
prabh
 
Sheriff
Posts: 15764
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the risk of sounding like a broken record in this forum, as an alternative to the MVC, check out what Allen Holub has to say about it and GUIs for OO systems. He talks about a Visual-Proxy pattern. It's kind of a combination of Facade, Proxy, and Abstract Factory. Takes a while to digest though and it may contradict things you have heard before. FWIW, I agree with the guy for the most part.
Junilu

[This message has been edited by JUNILU LACAR (edited May 19, 2001).]
 
    Bookmark Topic Watch Topic
  • New Topic