Scaling Components

What I want is a quick and easy way to scale a component, and all of its children. Ideally something like a JComponent or a JPanel with a scale property. Would it be too much to ask for this in Java 7 and/or FX Script?

I'm working on an editor panel which has a number of components, where each component has child components. As a quick and nasty in my editor panel's paintComponent method I scale the Graphics2D object and consequenly all the children get scaled accordingly on the repaint. I track the mouse wheel and ta-da instant dynamic scalling. Unfortunately this violates good Swing programming, and naturally all the mouse tracking stuff is wrong for scale factors other than 1.0. But it gives me the effect and simplicity I'm seeking - although unusable.

How have other people handled this sort of thing? Is there some way to do it without having to dynamically update the panel and all of its components with new boundaries?

[958 byte] By [Eric-the-Ka] at [2007-11-27 7:06:41]
# 1
If you think this feature would be a good idea please vote on it at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6568966
Eric-the-Ka at 2007-7-12 18:57:59 > top of Java-index,Desktop,Core GUI APIs...