aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes FrontController to swing client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "FrontController to swing client " Watch "FrontController to swing client " New topic
Author

FrontController to swing client

Jose Jim�nez
Ranch Hand

Joined: Jun 15, 2005
Posts: 101
How I could implement a frontController to swingClient ?? This FrontController of swing application would be in server side of client side ??


SCEA<br />SCWCD<br />SCJP
Jose Jim�nez
Ranch Hand

Joined: Jun 15, 2005
Posts: 101
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

Joined: Aug 01, 2005
Posts: 32
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

Joined: Jun 15, 2005
Posts: 101
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

Joined: Aug 01, 2005
Posts: 32
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 ]
 
 
subject: FrontController to swing client