public void paint(Graphics g) { RootPanel rootPanel = frame.getRoot(); if (rootPanel != null) { if (isWindowResizing()) { PanelPainterLoop.doPaintJob( rootPanel.getPanel(), rootPanel.getPanel().getAbsoluteBounds(), (Graphics2D) g); } else { rootPanel.addDirtyRegion(frame.getRoot().getPanel().getAbsoluteBounds()); } } }
public void doLayout() { RootPanel rootPanel = frame.getRoot(); if (rootPanel != null && isWindowResizing()) { rootPanel.doLayout(); } else super.doLayout(); }