I want to draw a tree in Jframe, the tree view is available in the attachment,
As you see there are nodes connecting to each other.I know that I have to find the midpoint of the nodes at the same level or things like that.
What I want your help is which components Should I use?
the necessities are:
No third parties,just using swing,
a node can be clicked to add or remove node,when clicked a textbox will be opened and the user will enter name of node,and if the tree gets bigger and doesnt fit the window the window will be able to expand.
Some says that I must use JScrollpane for window.But I dont have a main idea!
Is there anyone who can help me?