2362N/A * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The class that manages a basic title bar 0N/A * <strong>Warning:</strong> 0N/A * Serialized objects of this class will not be compatible with 0N/A * future Swing releases. The current serialization support is 0N/A * appropriate for short term storage or RMI between applications running 0N/A * the same version of Swing. As of 1.4, support for long term storage 0N/A * of all JavaBeans<sup><font size="-2">TM</font></sup> 0N/A * has been added to the <code>java.beans</code> package. 0N/A * @author David Kloba 0N/A * @author Steve Wilson 609N/A // These constants are not used in JDK code 0N/A "InternalFrameTitlePane.iconifyButtonAccessibleName",
0N/A "InternalFrameTitlePane.iconifyButtonOpacity");
0N/A "InternalFrameTitlePane.maximizeButtonAccessibleName",
0N/A "InternalFrameTitlePane.maximizeButtonOpacity");
0N/A "InternalFrameTitlePane.closeButtonAccessibleName",
0N/A "InternalFrameTitlePane.closeButtonOpacity");
0N/A // windowMenu.setPopupMenuVisible(true); 0N/A // windowMenu.setVisible(true); 0N/A // Center text vertically. 0N/A * Invoked from paintComponent. 0N/A * Paints the background of the titlepane. All text and icons will 0N/A * then be rendered on top of this background. 0N/A * @param g the graphics to use to render the background 0N/A * Post a WINDOW_CLOSING-like event to the frame, so that it can 0N/A * be treated like a regular Frame. 0N/A // Try posting event, unless there's a SecurityManager. 0N/A // Use dispatchEvent instead. 0N/A // PropertyChangeListener 0N/A }
else if (
"maximizable" ==
prop) {
0N/A // Leave room for three characters in the title. 0N/A // Calculate height. 0N/A // SystemMenuBar forces the icon to be 16x16 or less. 0N/A // Take into account the border insets if any. 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 0N/A // NOTE: This class exists only for backward compatability. All 0N/A // its functionality has been moved into Handler. If you need to add 0N/A // new functionality add it to the Handler, but make sure this 0N/A // class calls into the Handler. 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 0N/A // NOTE: This class exists only for backward compatability. All 0N/A // its functionality has been moved into Handler. If you need to add 0N/A // new functionality add it to the Handler, but make sure this 0N/A // class calls into the Handler. 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 609N/A "InternalFrameTitlePane.closeButtonText"));
0N/A }
// end CloseAction 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 609N/A "InternalFrameTitlePane.maximizeButtonText"));
0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 609N/A "InternalFrameTitlePane.minimizeButtonText"));
0N/A }
// end IconifyAction 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 609N/A "InternalFrameTitlePane.restoreButtonText"));
0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 609N/A "InternalFrameTitlePane.moveButtonText"));
0N/A // This action is currently undefined 0N/A * Handles showing and hiding the system menu. 0N/A private boolean show;
// whether to show the menu 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 609N/A "InternalFrameTitlePane.sizeButtonText"));
0N/A // This action is currently undefined 0N/A * This class should be treated as a "protected" inner class. 0N/A * Instantiate it only within subclasses of <Foo>. 0N/A "InternalFrame.icon");
0N/A // Resize to 16x16 if necessary. 0N/A }
// end SystemMenuBar 0N/A}
// End Title Pane Class