Package javax.swing

Examples of javax.swing.RootPaneContainer


  /**
   * @return the calendarDigalog
   */
  protected CalendarDialog getCalendarDialog() {
    if (calendarDigalog == null) {
      RootPaneContainer root = null;
      Container parent = getParent();
      while (parent != null && root == null) {
        if (parent instanceof RootPaneContainer) {
          root = (RootPaneContainer) parent;
        else {
View Full Code Here


    /**
     * @return the calendarDigalog
     */
    protected CalendarDialog getCalendarDialog() {
        if (calendarDigalog == null) {
            RootPaneContainer root = null;
            Container parent = getParent();
            while (parent != null && root == null) {
                if (parent instanceof RootPaneContainer) {
                    root = (RootPaneContainer) parent;
                } else {
View Full Code Here

        protected void setLayersTransparent(Window w, boolean transparent) {

            Color bg = transparent ? new Color(0, 0, 0, 0) : null;
            if (w instanceof RootPaneContainer) {
                RootPaneContainer rpc = (RootPaneContainer)w;
                JRootPane root = rpc.getRootPane();
                JLayeredPane lp = root.getLayeredPane();
                Container c = root.getContentPane();
                JComponent content =
                    (c instanceof JComponent) ? (JComponent)c : null;
                if (transparent) {
View Full Code Here

        private OSXMaskingContentPane installMaskingPane(Window w) {
            OSXMaskingContentPane content;
            if (w instanceof RootPaneContainer) {
                // TODO: replace layered pane instead?
                final RootPaneContainer rpc = (RootPaneContainer)w;
                Container oldContent = rpc.getContentPane();
                if (oldContent instanceof OSXMaskingContentPane) {
                    content = (OSXMaskingContentPane)oldContent;
                }
                else {
                    content = new OSXMaskingContentPane(oldContent);
                    // TODO: listen for content pane changes
                    rpc.setContentPane(content);
                }
            }
            else {
                Component oldContent = w.getComponentCount() > 0 ? w.getComponent(0) : null;
                if (oldContent instanceof OSXMaskingContentPane) {
View Full Code Here

        protected void setLayersTransparent(Window w, boolean transparent) {

            Color bg = transparent ? new Color(0, 0, 0, 0) : null;
            if (w instanceof RootPaneContainer) {
                RootPaneContainer rpc = (RootPaneContainer)w;
                JRootPane root = rpc.getRootPane();
                JLayeredPane lp = root.getLayeredPane();
                Container c = root.getContentPane();
                JComponent content =
                    (c instanceof JComponent) ? (JComponent)c : null;
                if (transparent) {
View Full Code Here

        private OSXMaskingContentPane installMaskingPane(Window w) {
            OSXMaskingContentPane content;
            if (w instanceof RootPaneContainer) {
                // TODO: replace layered pane instead?
                final RootPaneContainer rpc = (RootPaneContainer)w;
                Container oldContent = rpc.getContentPane();
                if (oldContent instanceof OSXMaskingContentPane) {
                    content = (OSXMaskingContentPane)oldContent;
                }
                else {
                    content = new OSXMaskingContentPane(oldContent);
                    // TODO: listen for content pane changes
                    rpc.setContentPane(content);
                }
            }
            else {
                Component oldContent = w.getComponentCount() > 0 ? w.getComponent(0) : null;
                if (oldContent instanceof OSXMaskingContentPane) {
View Full Code Here

      spyGlass.setVisible(true);
      spyPanel.reload(rootComponent, component);
      return;
    }
    if (rootComponent instanceof RootPaneContainer) {
      RootPaneContainer rootPane = (RootPaneContainer) rootComponent;
      spyGlass = new SwingSpyGlassPane(rootPane);
      rootPane.setGlassPane(spyGlass);
      rootPane.getGlassPane().setVisible(true);
      Toolkit.getDefaultToolkit().addAWTEventListener(spyGlass, AWTEvent.MOUSE_MOTION_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);
    }

    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
View Full Code Here

TOP

Related Classes of javax.swing.RootPaneContainer

Copyright © 2018 www.massapicom. 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.