Thread view

Hi,
Anyone know what is going on here? I am setting preferredSize on a JButton.
This doesn't work:
w=self.__tree.width
h=self.__nodeRenderer.preferredSize.height
self.__nodeRenderer.preferredSize = w,h
Changing the last line
self.__nodeRenderer.preferredSize = 300,h
works.
How is this possible? Also, a print statement prints the correct value in
both cases. Very strange.
Thanks
-Ed