Exemplo n.º 1
0
 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());
     }
   }
 }
Exemplo n.º 2
0
 public void doLayout() {
   RootPanel rootPanel = frame.getRoot();
   if (rootPanel != null && isWindowResizing()) {
     rootPanel.doLayout();
   } else super.doLayout();
 }