Package javax.swing

Examples of javax.swing.JRootPane.revalidate()


              _log.debug("\tsetting root pane size to " + newSize);
            }
            if (newSize.height != rootPane.getHeight()
                    || newSize.width != rootPane.getWidth()) {
                rootPane.setSize(newSize);
                rootPane.revalidate(); //PM:4/8/07 Added to correct paint issue
                rootPane.repaint();
            }
        }

        if (_log.isDebugEnabled()) {
View Full Code Here


                      _log.debug("\tsetting root pane size to " + newSize);
                    }
                    if (newSize.height != root.getHeight()
                            || newSize.width != root.getWidth()) {
                        root.setSize(newSize);
                        root.revalidate(); //PM:4/8/07 Added to correct paint issue
                    }
                }

                if (debugEnabled) {
                  _log.debug("\tSetting owning container's size to ("
View Full Code Here

              _log.debug("\tsetting root pane size to " + newSize);
            }
            if (newSize.height != rootPane.getHeight()
                    || newSize.width != rootPane.getWidth()) {
                rootPane.setSize(newSize);
                rootPane.revalidate(); //PM:4/8/07 Added to correct paint issue
                rootPane.repaint();
            }
        }

        if (_log.isDebugEnabled()) {
View Full Code Here

                      _log.debug("\tsetting root pane size to " + newSize);
                    }
                    if (newSize.height != root.getHeight()
                            || newSize.width != root.getWidth()) {
                        root.setSize(newSize);
                        root.revalidate(); //PM:4/8/07 Added to correct paint issue
                    }
                }

                if (debugEnabled) {
                  _log.debug("\tSetting owning container's size to ("
View Full Code Here

              _log.debug("\tsetting root pane size to " + newSize);
            }
            if (newSize.height != rootPane.getHeight()
                    || newSize.width != rootPane.getWidth()) {
                rootPane.setSize(newSize);
                rootPane.revalidate(); //PM:4/8/07 Added to correct paint issue
                rootPane.repaint();
            }
        }

        if (_log.isDebugEnabled()) {
View Full Code Here

      //When using the glass pane approach, restore the old one (jgoodies or something elst may be using it)
      final Component oldGlassPane = rootPane.getGlassPane();
      waitPanel.addCancelListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        rootPane.setGlassPane(oldGlassPane);
        rootPane.revalidate();
      }
    });
      rootPane.setGlassPane(waitPanel.getComponent());
      rootPane.revalidate();
      waitPanel.start();
View Full Code Here

        rootPane.setGlassPane(oldGlassPane);
        rootPane.revalidate();
      }
    });
      rootPane.setGlassPane(waitPanel.getComponent());
      rootPane.revalidate();
      waitPanel.start();
      new Thread(new Runnable() {
        public void run() {
          try {
            tolaunch.run();
View Full Code Here

  public void actionPerformed(final ActionEvent e) {
    final IMapSelection selection = Controller.getCurrentController().getSelection();
    final Component mapView = Controller.getCurrentController().getMapViewManager().getMapViewComponent();
    final JRootPane rootPane = SwingUtilities.getRootPane(mapView);
    if (!rootPane.isValid()) {
      rootPane.revalidate();
    }
    selection.centerNode(selection.getSelected());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.