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