Re: JTree not updating after deleting a node in DnD



1. What's the difference between nodesRemoved() which I already call and
fireTreeNodesRemoved()?
The idea is you make a great string of changes to your model. You
DON'T repaint until you are done. Then when you are done all your
tinkering, you tell the GUI what you changed with the firexxx methods
so it can do all the repainting in one quick pass.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: Draw a string on JPanel
    ... > I want to draw a string on JPanel based on user input. ... > in the code to force the repaint. ... you call setText on the panel. ... you do this to a container, the container also needs to be revalidated. ...
    (comp.lang.java.programmer)
  • Re: Making lists visible
    ... >I've got a list in my program and I'e written code to add a string to it. ... >However I can't see it on the GUI that I've designed. ... You can try adding a manual repaint after your add. ... did you do the add with a thread other than the Swing thread. ...
    (comp.lang.java.programmer)
  • Re: A whack on the side of the head needed.
    ... repaint, the component thinks its size is 0x0. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.gui)
  • Re: Adding string to Memo
    ... API level indexer. ... the raw string like it is seen in the control. ... memo1.Refresh and repaint may have to be used.. ... Real Programmers Do things like this. ...
    (alt.comp.lang.borland-delphi)
  • Re: refresh/repain JFrame
    ... perhaps you needed a validate first. ... you think you needed a repaint. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.help)