Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MVC Architecture for every Component??  RSS feed

 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

As we know JAVA Swings strictly follows MVC Architecture.

Now can we state one by one all possible CLasses (e.g. for JTextField) their respective

M(Model)

V(View)

C(Controller)


I am again putting my question is that I want to know for all possible Components list available in java Swing package with their respective MVC.

I hope that question I raised is very clear.

I request you to cooperate in this thread.

If any concern then revert me back.

 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By my understanding, the View and Controller portions are built into the component itself. The component also comes with a default Model object, but the Model can be replaced.

There is a table near the end of this article that lists the Models for each component.
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marc Peabody:
By my understanding, the View and Controller portions are built into the component itself. The component also comes with a default Model object, but the Model can be replaced.

There is a table near the end of this article that lists the Models for each component.


MArc, Could you please explain me what is the exactly mapping of Component,Model Interface and Model Type giving in that table to Model, View & Controller.

I would appreciate your kind response.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't worry about the Model Type column. The Model Interface describes what kind of class the component uses as its model.

Mind if I ask why you posted this thread? Is this to solve a problem or are you bored?
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marc Peabody:
Don't worry about the Model Type column. The Model Interface describes what kind of class the component uses as its model.

Mind if I ask why you posted this thread? Is this to solve a problem or are you bored?


Thankx Marc,

Well I am newbie to JAVA Swings. Just trying to get some hands-on exp in swings. I read the first chapter about Model-View Controller. That's why I was curious about to know this pair for all most every Swing components.

So this is not solve a problem.. I am not sure but this thread might help others newbie of Swings.

Don't you think so.??

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!