}
public void onMaximized(PropertyChangeEvent evt) {
if (toolWindow.getType() == ToolWindowType.FLOATING_LIVE) {
FloatingLiveWindow floatingLiveWindow = descriptor.getManager().getFloatingLiveWindow(toolWindow);
if ((Boolean) evt.getNewValue()) {
oldBounds = floatingLiveWindow.getBounds();
Rectangle bounds = descriptor.getManager().getMainContainer().getBounds();
bounds = SwingUtilities.convertRectangle(descriptor.getManager().getMainContainer(),
bounds,
descriptor.getManager().getRootPane().getLayeredPane());
floatingLiveWindow.setBounds(bounds);
} else {
floatingLiveWindow.setBounds(oldBounds);
}
SwingUtil.repaint((Component) floatingLiveWindow);
}
}