• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

FrontController to swing client

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How I could implement a frontController to swingClient ?? This FrontController of swing application would be in server side of client side ??
 
Jose Jim�nez
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I saw always in books that swing clients access direct to facade/bussines delegate. How could implements a frontController to swing client ?? It's possible ?
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JJ

MVC architecture is native in Swing framework, your controller is the Event Handler you implement, it performs actions based on the source of the event.

Regards

Marie Pierre
 
Jose Jim�nez
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mari pierre, then :

Web Front controller : Point central of application for all request of all users.

Swing Front Controller: Point central of application for all request of one user. (It's considered how Front Controller ??? this is my doubt.


Can help me ??
 
Marie Pierre Courbevoie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JJ

Summarily:
An Event Handler is a listener (implements java.awt.event.ActionListener), you register this Event Handler with the Swing components you want to monitor in the initialize method of your Swing application. Each time swing components state change (user clicks a button...), an event is fired. the Event Handler intercepts this event, retrieves the source and execute associated action.
In a web application, user clicks a link..., the webcontroller intercepts the requested URL and execute associated action.
In the web application, there're direct interactions between the system and the customers; in the Swing client application, travel agent act on customers' behalf.

Hope this helps

Marie Pierre
[ August 21, 2005: Message edited by: Marie Pierre Courbevoie ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic