• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Framework

 
Mohan Panigrahi
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question was asked two years back on this forum, without any replies......I am facing the same question today. Would anyone know the answer?

Thanks!

==================
Hi EveryBody,
Is there a framework available for swing applications. Like Struts is an MVC frameWork with JSP /Servlets. If there are any such frameworks, open-source or propreitary please let me know.
==================
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done plenty of web and swing and never thought of a Struts type controller for a GUI. There's a blog here with some discussion on the subject.
The problem I have with a Controller-Action type setup is that I don't design GUI's that way. The interaction between a browser and a server has a well-defined, single message: an HTTP request. It's a no-brainer to associate particular requests with particular handlers. That pattern has been around much longer than Struts. However, Swing's API describes a low level of functionality, akin to the HTML in a web app, so it's more difficult to describe its behavior with a request/action framework
When I design GUI's, I will create a single component to encapsulate a bunch of behavior (i.e. a bunch of buttons into a keypad) and use custom events to sort out the uninteresting behavior (i.e. typing in numbers) from the interesting behavior (i.e. hitting enter to send the total to another component). I could see a framework being useful with handling the higher-level custom events, if I went throught the trouble of designing my events to conform to some framework, but it would probably just be in the way when dealing with the finer-grained actions.
My .02
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!