aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Howcome jtree is MVC? 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 » Java » Swing / AWT / SWT
Bookmark "Howcome jtree is MVC?" Watch "Howcome jtree is MVC?" New topic
Author

Howcome jtree is MVC?

Hrishikesh Ghatnekar
Greenhorn

Joined: Oct 25, 2004
Posts: 28
I read on net that almost all swing components are MVC based and Jtree is one of them.

For Jtree component I will have

1 ) Jtree object
2) DefaultTreeModel
3) DefaultMutableTreeNode.

So howcome they are MVC based? Can anybody explain?

Thanks
Hrishikesh


Ashish Chopra
Ranch Hand

Joined: Nov 30, 2004
Posts: 134
Hi Hrishikesh,

Please refer to this link for an answer to your query.


Quis Custodiet Ipsos Custodes<br /> <br />My blog: <a href="http://www.coherentrambling.blogspot.com" target="_blank" rel="nofollow">http://www.coherentrambling.blogspot.com</a>
Sripathi Krishnamurthy
Ranch Hand

Joined: Mar 07, 2005
Posts: 232
Originally posted by Hrishikesh Ghatnekar:
I read on net that almost all swing components are MVC based and Jtree is one of them.

For Jtree component I will have

1 ) Jtree object
2) DefaultTreeModel
3) DefaultMutableTreeNode.

So howcome they are MVC based? Can anybody explain?

Thanks
Hrishikesh




All graphical components in swing use MVC pattern.

http://www.javaworld.com/javaworld/jw-10-1998/jw-10-jtree.html
http://www.developer.com/java/ent/article.php/10933_3336761_1

read the articles in the links and you will understand why swing components use MVC pattern.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Moving to Swing/AWT...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
jQuery in Action, 2nd edition
 
subject: Howcome jtree is MVC?