Path: blob/master/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/ui/FrameWrapper.java
41161 views
/*1* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324package sun.jvm.hotspot.ui;2526import java.awt.*;27import java.awt.event.*;28import javax.swing.*;2930/** Provides uniform interface for dealing with JInternalFrames and31JFrames. */3233public interface FrameWrapper {34/** The JInternalFrame or JFrame this wraps */35public Component getComponent();3637public Container getContentPane();38public void setVisible(boolean visible);39public void setSize(int x, int y);40public void pack();41public void dispose();42public void setBackground(Color color);43public void setResizable(boolean resizable);4445/** Largely for use with JInternalFrames but also affects, for46example, the default close operation for JFrames */47public void setClosable(boolean closable);4849/** Set an ActionListener to be invoked when the underlying window50is closing ("windowClosing" event of a WindowListener). Note:51the ActionEvent passed to this listener may be null. */52public void setClosingActionListener(ActionListener l);5354/** Set an ActionListener to be invoked when the underlying window55is activated ("windowActivated" event of a56WindowListener). Note: the ActionEvent passed to this listener57may be null. */58public void setActivatedActionListener(ActionListener l);5960/** Move this frame to the front. Should change focus to the frame61if possible. */62public void toFront();63}646566