• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Howcome jtree is MVC?

 
Hrishikesh Ghatnekar
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hrishikesh,

Please refer to this link for an answer to your query.
 
Sripathi Krishnamurthy
Ranch Hand
Posts: 232
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing/AWT...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic