• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FrontController to swing client

 
Jose Jim�nez
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • 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
  • 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 ?
 
Marie Pierre Courbevoie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic