本文整理了Java中javax.swing.JTree.setUI()
方法的一些代码示例,展示了JTree.setUI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.setUI()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:setUI
暂无
代码示例来源:origin: stackoverflow.com
JTree tree = new JTree();
tree.setUI( new MultiSelectionTreeUI() );
代码示例来源:origin: stackoverflow.com
JTree tree = new JTree();
ReticentTreeUI ui = new ReticentTreeUI();
tree.setUI(ui);
ui.hideRow(2);
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Expands all paths.
*/
public void expandAll() {
TreeUI treeUI = tree.getUI();
try {
tree.setUI(null);
TreeNode root = (TreeNode) tree.getModel().getRoot();
expandOrCollapseAll(new TreePath(root), true);
} finally {
tree.setUI(treeUI);
tree.updateUI();
}
}
代码示例来源:origin: de.sciss/jtreetable
@Override
public void setUI(TreeUI ui) {
super.setUI(ui);
if (ui instanceof BasicTreeUI) {
BasicTreeUI bui = (BasicTreeUI)ui;
treeHandleWidth = bui.getLeftChildIndent() + bui.getRightChildIndent();
} else {
treeHandleWidth = -1;
}
}
代码示例来源:origin: de.sciss/jtreetable
protected void unconfigureTree() {
tree.setCellRenderer(null);
tree.setModel(new DefaultTreeModel(null));
tree.setSelectionModel(new DefaultTreeSelectionModel());
tree.setUI(null);
}
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
private void inicializarJTree() {
arvoreExemplos.setCellRenderer(new ExampleTreeRender());
arvoreExemplos.setUI(new PSTreeUI());
mostrarExemplos();
initTreeListner();
}
代码示例来源:origin: stackoverflow.com
private JComponent makeUI() {
final JTree trProjects = new JTree();
trProjects.setUI(new SynthTreeUI() {
@Override public Rectangle getPathBounds(JTree tree, TreePath path) {
if (tree != null && treeState != null) {
代码示例来源:origin: tinyMediaManager/tinyMediaManager
tree.setUI(ui);
代码示例来源:origin: tinyMediaManager/tinyMediaManager
tree.setUI(ui);
代码示例来源:origin: stackoverflow.com
tree.setUI(tUI);
try {
tUI.setCollapsedIcon(new ImageIcon(new URL("https://i.stack.imgur.com/nKJFv.png")));
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
arvore.setUI(new PSTreeUI());
jLabel2.setIcon(IconFactory.createIcon(IconFactory.CAMINHO_ICONES_PEQUENOS, "help.png"));
内容来源于网络,如有侵权,请联系作者删除!