Java JRootPane isSecondaryWindow(JRootPane rp)

Here you can find the source of isSecondaryWindow(JRootPane rp)

Description

is Secondary Window

License

Open Source License

Declaration

public static boolean isSecondaryWindow(JRootPane rp) 

Method Source Code


//package com.java2s;
import java.awt.*;

import javax.swing.*;

public class Main {
    public static boolean isSecondaryWindow(JRootPane rp) {
        Component c = rp.getParent();
        if (c instanceof JInternalFrame) {
            return true;
        } else {//from ww  w . jav  a  2s  . c o m
            return false;
        }
    }
}

Related

  1. addShortcut(JRootPane rootPane, String command, Action action)
  2. closeOnEscape(final Window window, final JRootPane root)
  3. getRootPane(Window window)
  4. installEscapeBinding(final Window window, final JRootPane rootPane, final boolean dispose)
  5. makeWindowLeopardStyle(JRootPane rootPane)
  6. registerEscapeAction(JRootPane pane, ActionListener l)
  7. setCancelAction(RootPaneContainer c, Action cancelAction)
  8. setEscapeAction(JRootPane pane, Action action)