jdk/src/share/classes/sun/awt/EmbeddedFrame.java
changeset 16734 da1901d79073
parent 15983 26a673dec5b2
child 16901 d98c53659845
equal deleted inserted replaced
16733:9267ec7004a1 16734:da1901d79073
     1 /*
     1 /*
     2  * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    32 import java.beans.PropertyChangeListener;
    32 import java.beans.PropertyChangeListener;
    33 import java.beans.PropertyChangeEvent;
    33 import java.beans.PropertyChangeEvent;
    34 import java.util.Set;
    34 import java.util.Set;
    35 import java.awt.AWTKeyStroke;
    35 import java.awt.AWTKeyStroke;
    36 import java.applet.Applet;
    36 import java.applet.Applet;
    37 import javax.tools.annotation.GenerateNativeHeader;
       
    38 import sun.applet.AppletPanel;
    37 import sun.applet.AppletPanel;
    39 
    38 
    40 /**
    39 /**
    41  * A generic container used for embedding Java components, usually applets.
    40  * A generic container used for embedding Java components, usually applets.
    42  * An EmbeddedFrame has two related uses:
    41  * An EmbeddedFrame has two related uses:
    52  *   handle should be of the appropriate native type for a specific
    51  *   handle should be of the appropriate native type for a specific
    53  *   platform, as stored in the pData field of the ComponentPeer.
    52  *   platform, as stored in the pData field of the ComponentPeer.
    54  *
    53  *
    55  * @author      Thomas Ball
    54  * @author      Thomas Ball
    56  */
    55  */
    57 /* No native methods here, but the constants are needed in the supporting JNI code */
       
    58 @GenerateNativeHeader
       
    59 public abstract class EmbeddedFrame extends Frame
    56 public abstract class EmbeddedFrame extends Frame
    60                           implements KeyEventDispatcher, PropertyChangeListener {
    57                           implements KeyEventDispatcher, PropertyChangeListener {
    61 
    58 
    62     private boolean isCursorAllowed = true;
    59     private boolean isCursorAllowed = true;
    63     private boolean supportsXEmbed = false;
    60     private boolean supportsXEmbed = false;