[show
older messages in this discussion]
[hide
older]
how to implement resizing of tree node (or any Box) by dragging its edge?
Hello I notice there are 2 forums for dot useful?March 20, 2006 4:20 PM
Which one to use?
----------
Hello,
Suggestion: implement resizing of tree node (or any Box) by dragging its edge.
Each node of my JTree contains JPanels in a Box. But actually, this is a general question. Is
there a 'best' way to implement resize of a container by dragging its edge?
This might be a good enhancement to dot-useful. I dont know how the details of how to
implement this. Do you know exactly how?
Please email if you have a solution.
thanks,
Anil
3 more in dotuseful javaRE: how to implement resizing of tree node (or any Box) by dragging its edge?
Hi Anil,March 20, 2006 4:58 PM
The new dotuseful forum is here. Quick answer is that I think you would not to resize a tree node by dragging it. What you can think about is to resize a container you have your JTree in.
You can try putting your JTree into JSPlitPane for example.
Denis Krukovsky.
1 more in dotuseful java
RE: RE: how to implement resizing of tree node (or any Box) by dragging its edge?
Not so, each node has two JTextAreas where one can type into. so we do need to enlarge and shrink each node. Do you know how?thanks,
Anil
+ add to your
Readings [?]
RE: how to implement resizing of tree node (or any Box) by dragging its edge?
Anil, what is the event on which your code will need to resize the node? Is it the user dragging some border? Is it your node decides to change its size by itself?
March 23, 2006 10:40 AM
In either way you can play with setPreferredSize() / setMinimumSize() or made your node from resizable container (not sure is there one) which will contain your TextAreas. And tell us how things going.
Denis Krukovsky.
in dotuseful java
- ReplyRE: RE: RE: how to implement resizing of tree node (or any Box) by dragging its edge?
Yes, if the user drags the border - just as in a JFrame.
April 12, 2006 2:32 PM
Dont misunderstand me but it will be good if you can implement this functionality for dotuseful, otherwise dotuseful will be not useful.
We are looking for dotuseful to provide us with functionality that can be useful to us - without all of us reimplementing the wheel.
thanks,
Anil
2 more in dotuseful jtree java swing
- Reply
Blogoforum -
del.icio.us