Package javax.swing

Examples of javax.swing.JTree.repaint()


          Runnable runnable = new Runnable() {

            public void run() {
              ((DefaultTreeModel)tree.getModel()).nodeChanged(node);
              tree.repaint();
            }
          };
          try {
            SwingUtilities.invokeAndWait(runnable);
          } catch (InterruptedException e) {
View Full Code Here


        final JTree t = (JTree) tree;
        // tree が展開されたときにバックグラウンドがみだれるのの workaround
        t.addTreeSelectionListener(new TreeSelectionListener(){
            @Override
            public void valueChanged(TreeSelectionEvent e) {
                t.repaint();
            }
        });
        return new MyTreeUI();
    }
View Full Code Here

            // hack to improve rendering performance
            JTree mainTree = SoapUI.getNavigator().getMainTree();
            TreePath nodePath = getTreeModel().getPath(this);
            Rectangle rowBounds = mainTree.getPathBounds(nodePath);
            if (rowBounds != null) {
                mainTree.repaint(rowBounds);
            }
        }
    }

    public void release() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.