I know that Jaitree's models can use this form in the section of properties:
This lesson Depends on the left side of the field and indentation, it creates nodes.
My question is: If I have an indent text in the left (such as in a file) in the left and I want to give it as argument for the model from the code, how can I do this? I can? I think I can parse it manually, but I think it can do it graphically, so a method must already be applied which I can call, okay?
try
basic source UITreeUI = (BasicTreeUI) myJTree GetUI (); BasicTreeUI.setRightChildIndent (10);
If that does not work, I usually do it like this (but it depends on the format you are going to have)
/ Recover / Hashmap Default properties of UIDefaults uiDefs = UIManager.getDefaults (); // Now to change the one we want to change, UiDefs.put ("tree.leftChildIndent", new integer (x));
Comments
Post a Comment