Пример #1
0
 @Override
 public Component getTreeCellRendererComponent(
     JTree t,
     Object value,
     boolean sel,
     boolean expanded,
     boolean leaf,
     int row,
     boolean hasFocus) {
   VisualNode node = (VisualNode) value;
   node.decorate(this, sel, System.currentTimeMillis());
   if (node.hasChanged()) {
     this.revalidate();
   }
   return this;
 }