creating custom Model class

B

Brandon McCombs

I have an existing program that has separate variables for a
DefaultTreeModel and a ListModel and someone suggested to me that I
create my own class that combines those 2 data structures using their
respective Interfaces. The question I have is if I do that will I need
to utilize methods such as addTreeModelListener() so that the components
of my application that currently are alerted to the DefaultTreeModel
changes (such as JTree) will still be alerted when my custom class is
used instead?

thanks
Brandon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top