public void setVisible(boolean b) {
super.setVisible(b);
if (b) {
Rectangle detachedBounds = SwingUtil.validateBounds(contentUI.getDetachedBounds());
if (detachedBounds != null) {
MoveComponentAnimation animation = new MoveComponentAnimation(200f, this);
animation.show(detachedBounds);
setBounds(detachedBounds);
}
}
}