creating custom Model class

Discussion in 'Java' started by Brandon McCombs, Jun 24, 2006.

  1. 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
    Brandon McCombs, Jun 24, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ravi Ambros Wallau
    Replies:
    0
    Views:
    4,075
    Ravi Ambros Wallau
    Jun 1, 2005
  2. E11
    Replies:
    1
    Views:
    4,711
    Thomas Weidenfeller
    Oct 12, 2005
  3. Replies:
    1
    Views:
    471
    Andreas Wollschlaeger
    Oct 6, 2006
  4. c4tech
    Replies:
    0
    Views:
    357
    c4tech
    Jul 1, 2009
  5. Ravi Ambros Wallau
    Replies:
    0
    Views:
    298
    Ravi Ambros Wallau
    Jun 1, 2005
Loading...

Share This Page