Hey, thanks for the nice welcome guys. I am really liking Java
Hey, do you guys have an idea for a buddy list? I have created one with a JTree, but I don’'t know if I can do it with that.
I have a JTree in it with the buddies represented with a TreeMap. The problem is that I cannot seem to update the tree once it’'s been painted (in case a buddy signs off or something). What I have been doing is removing the JTree from the panel with .remove( tree ), recreating it from my TreeMap data, and then adding it to the panel again with .add(). I have been doing all of this using the SwingUtilities.ivokeLater() to do the drawing, and a seperate thread that just has a Thread.sleep( 2000 ) in it to similate a buddy going offline to test it. What happens is that after the sleep happens, and the tree is supposedly being redrawn with invokeLater the panel just completely dissapears off the JFrame.
Also, is Iain’'s book available for purchase so I can read it online? I would very much rather do that then get a printed copy.