Java JTree saveTreeSelection(JTree tree)

Here you can find the source of saveTreeSelection(JTree tree)

Description

save Tree Selection

License

Apache License

Declaration

public static TreePath[] saveTreeSelection(JTree tree) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.JTree;

import javax.swing.tree.TreePath;

public class Main {
    public static TreePath[] saveTreeSelection(JTree tree) {
        return tree == null ? null : tree.getSelectionPaths();
    }/*from  w  ww  .  j av  a2 s . co  m*/
}

Related

  1. repaintSelection(JTree tree)
  2. restoreExpanstionState(JTree tree, int row, String expansionState)
  3. revalidateTree(java.awt.Component c)
  4. saveExpansionState(JTree tree)
  5. saveExpansionStateStrings(JTree tree)
  6. scrollToSelection(JTree tree)
  7. scrollTreeToSelectedRow(final JTree tree)
  8. setComponentTreeEnabled(Component c, boolean enabled)
  9. setLeftChildIndent(JTree tree, int indent)