posted 18 years ago
This is quite difficult to answer without further information. Where exactly are you stuck? What data structures are you using to hold your objects (Collections, arrays, etc). What exactly have you tried?
Note that with JTable you don't actually add anything to the table itself - you alter the underlying data structure and then call one of the 'fire' methods such as fireTableDataChanged(). JTree is a bit different because you have to mess around with TreeNodes.
My suggestion would be to get the table adding (and removing?) working on its own; maybe adding an item each time you click a JButton. When that is done, you can think about setting up the JTree and making the two cooperate.