Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • 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"....
Posts: 15885
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.

[This message has been edited by JUNILU LACAR (edited May 19, 2001).]
It's exactly the same and completely different as this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic