src/java.desktop/share/classes/java/awt/Frame.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 22,46 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.awt;
import java.awt.peer.FramePeer;
! import java.awt.event.*;
import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.List;
import java.util.Vector;
! import java.io.Serializable;
! import java.io.ObjectOutputStream;
! import java.io.ObjectInputStream;
! import java.io.IOException;
! import sun.awt.AppContext;
! import sun.awt.SunToolkit;
import sun.awt.AWTAccessor;
! import java.lang.ref.WeakReference;
! import javax.accessibility.*;
/**
* A <code>Frame</code> is a top-level window with a title and a border.
* <p>
* The size of the frame includes any area designated for the
--- 22,48 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.awt;
+ import java.awt.event.KeyEvent;
+ import java.awt.event.WindowEvent;
import java.awt.peer.FramePeer;
! import java.io.IOException;
! import java.io.ObjectInputStream;
! import java.io.ObjectOutputStream;
! import java.io.Serializable;
import java.util.ArrayList;
import java.util.Vector;
!
! import javax.accessibility.AccessibleContext;
! import javax.accessibility.AccessibleRole;
! import javax.accessibility.AccessibleState;
! import javax.accessibility.AccessibleStateSet;
!
import sun.awt.AWTAccessor;
! import sun.awt.SunToolkit;
/**
* A <code>Frame</code> is a top-level window with a title and a border.
* <p>
* The size of the frame includes any area designated for the
*** 472,482 ****
* @see #removeNotify
*/
public void addNotify() {
synchronized (getTreeLock()) {
if (peer == null) {
! peer = getToolkit().createFrame(this);
}
FramePeer p = (FramePeer)peer;
MenuBar menuBar = this.menuBar;
if (menuBar != null) {
mbManagement = true;
--- 474,484 ----
* @see #removeNotify
*/
public void addNotify() {
synchronized (getTreeLock()) {
if (peer == null) {
! peer = getComponentFactory().createFrame(this);
}
FramePeer p = (FramePeer)peer;
MenuBar menuBar = this.menuBar;
if (menuBar != null) {
mbManagement = true;