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. Advertisements

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,266
    Ravi Ambros Wallau
    Jun 1, 2005
  2. E11
    Replies:
    1
    Views:
    5,780
    Thomas Weidenfeller
    Oct 12, 2005
  3. christopher diggins
    Replies:
    16
    Views:
    1,061
    Pete Becker
    May 4, 2005
  4. Alexandre Guimond

    creating custom options for custom widgets?

    Alexandre Guimond, Mar 22, 2006, in forum: Python
    Replies:
    0
    Views:
    478
    Alexandre Guimond
    Mar 22, 2006
  5. Replies:
    1
    Views:
    673
    Andreas Wollschlaeger
    Oct 6, 2006
  6. Joseph Turian
    Replies:
    5
    Views:
    868
  7. c4tech
    Replies:
    0
    Views:
    527
    c4tech
    Jul 1, 2009
  8. Ravi Ambros Wallau
    Replies:
    0
    Views:
    481
    Ravi Ambros Wallau
    Jun 1, 2005
Loading...