sign in | register

Blogoforum Blogoforum - RE: RE: how to implement resizing of tree node (or any Box) by dragging its edge?

recent > java > dotuseful

[show older messages in this discussion]

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
March 20, 2006 11:14 PM
+ add to your Readings [?]
- Reply

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?

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.

March 23, 2006 10:40 AM
in
- Reply

RE: 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.
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

April 12, 2006 2:32 PM
2 more in
- Reply

people think this discussion is about

wrong? assign your keywords [?]
Google

Explore Blogoforum - The Better Forum Experiment

Blogoforum is looking for UI Designer.

Tell the World

Blogoforum will become more useful as its user base grows. If you think the idea is interesting, bookmark it on del.icio.us and tell your friends.