aspose file tools*
The moose likes Java in General and the fly likes bad design ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "bad design ?" Watch "bad design ?" New topic
Author

bad design ?

James Clarke
Ranch Hand

Joined: Oct 04, 2004
Posts: 148
Hi,

I am designing a client-server application that registers an object containing swing components with RMI registry for retrieval from the client side. The object containing the swing component will be remote and serialized...

The object will be retrieved from the client side and the swing components will be used for the GUI...

Is this bad design practice ? I am thinking that passing swing components over the network is a bad idea...

thanks,
J.C
Greg Fidster
Greenhorn

Joined: Dec 08, 2004
Posts: 10
You'll be a lot happier designing it so the remote service passes only data. Let the client side decide how to present the data. Your Swing application will use JTables and such, but another application can use the same service and display the same data in html or some use it in a batch process. Even if you never ever have plans to use this data in any other view, this excercise will lead to better design (separation of responsibilities, MVC)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bad design ?
 
Similar Threads
client design
This Weeks Giveaway
Swing UI and SCEA Part II
a serializable problem.
Passed Part 2/3