[Advanced-java] rescaling a jtree

mergen at inf.ufrgs.br mergen at inf.ufrgs.br
Tue May 2 08:04:32 PDT 2006


Hi,

i need to rescale a JTree. I manage to do that by overriding the paint 
method and using Graphics2D rescale method. However, the scrollbar and 
the selection of nodes seems to be using the original scale, i.e. when 
i click a node of the tree, a different node gets selected, that is the 
node that would be located in the position where the mouse click 
occurred if the original scale was used.

I believe it is not trivial to work this thing out, maybe i would have 
to work with the TreeUI methods, but before i start getting my hands 
dirty i would like some directions

thanks in advance!

Sergio

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Advanced-java mailing list