public JXTransformer(JComponent view, AffineTransform at) {
   super(null);
   setTransform(at);
   super.addImpl(glassPane, null, 0);
   setView(view);
   Handler handler = new Handler();
   addHierarchyBoundsListener(handler);
   addComponentListener(handler);
 }
 public void setView(Component view) {
   if (getView() != null) {
     super.remove(getView());
   }
   if (view != null) {
     super.addImpl(view, null, 1);
   }
   this.view = view;
   doLayout();
   revalidate();
   repaint();
 }