muhammad
8 years agoRegular Visitor
verify Jtree node style (Text is bold )
Hi All,
I am trying to get the Jtree Node text and verify that the node is bold or not. Here is the node which I am trying to get the node text style.
tree=Aliases.javaw.frame0.RootPane.null_layeredPane.null_contentPane.ScrollPane.Viewport.ScrollableDesktopPane.OfficeFrame.RootPane.null_layeredPane.null_contentPane.Panel.SplitPane.ScrollPane.Viewport.OfficeTreePanel.Tree
root=tree.getModel().getRoot()
name=root.getName()
Log.Message(name)
renderer=tree.getCellRenderer()
path = tree.getPathForRow(root)
c = renderer.getTreeCellRendererComponent(tree,root, False, False, False,root, False)
font =c.getFont()
Looking forward your response. Thanks.
Regards,
Muhammad