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); }
/** * Sets the content pane of this JCollapsiblePane. Components must be added to this content pane, * not to the JCollapsiblePane. * * @param contentPanel * @throws IllegalArgumentException if contentPanel is null */ public void setContentPane(Container contentPanel) { if (contentPanel == null) { throw new IllegalArgumentException("Content pane can't be null"); } if (wrapper != null) { super.remove(wrapper); } wrapper = new WrapperContainer(contentPanel); super.addImpl(wrapper, BorderLayout.CENTER, -1); }
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(); }