Posted by lucbard
on October 16, 2009 at 12:48 PM PDT
I just discovered PTransform.jar (from http://www.pbjar.org/blogs/jxlayer/jxlayer40/index.html )
There is an example (TestTransform.java) which shows multiple buttons. You can apply several transform such as scaling. I notice that no matter how large the scale is the JButton behavior stays the same.
I am creating inside a TopComponent (JPanel basically in Netbeans RCP) a page look and I want my users to be able to zoom in/out. It works fine except when I put a button in my panel the click behavior works but only if I click an inch away from it.
I have followed the demo and the only difference I can see is that the demo uses a JFrame to call the pack() method.