/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Class that manages a Motif title bar
*
* @since 1.3
*/
public class MotifInternalFrameTitlePane
extends BasicInternalFrameTitlePane implements LayoutManager, ActionListener, PropertyChangeListener
{
// The width and height of a title pane button
super(frame);
}
protected void installDefaults() {
}
protected void uninstallListeners() {
// Get around protected method in superclass
super.uninstallListeners();
}
return this;
}
return this;
}
return systemMenu;
}
protected void assembleSystemMenu() {
systemMenu = new JPopupMenu();
systemButton = new SystemButton();
public void actionPerformed(ActionEvent e) {
}
});
try {
frame.setSelected(true);
} catch (PropertyVetoException pve) {
}
systemMenu.setVisible(false);
}
}
});
}
protected void createButtons() {
minimizeButton = new MinimizeButton();
maximizeButton = new MaximizeButton();
}
protected void addSubComponents() {
}
}
color = c;
highlight = h;
shadow = s;
}
}
boolean value = false;
repaint();
else
revalidate();
repaint();
else
revalidate();
repaint();
repaint();
}
}
return minimumLayoutSize(c);
}
}
int w = getWidth();
int x = w - BUTTON_SIZE;
if(frame.isMaximizable()) {
x -= BUTTON_SIZE;
}
if(frame.isIconifiable()) {
x -= BUTTON_SIZE;
}
}
protected void showSystemMenu(){
}
protected void hideSystemMenu(){
systemMenu.setVisible(false);
}
FrameButton() {
super();
setFocusPainted(false);
setBorderPainted(false);
}
public boolean isFocusTraversable() {
return false;
}
public void requestFocus() {
// ignore request.
}
return buttonDimension;
}
return buttonDimension;
}
// draw background
// draw border
}
}
super.paintComponent(g);
}
}
super.paintComponent(g);
}
}
public boolean isFocusTraversable() { return false; }
public void requestFocus() {}
super.paintComponent(g);
}
}
super();
// Forward mouse events to titlebar for moves.
public void mouseDragged(MouseEvent e) {
}
public void mouseMoved(MouseEvent e) {
}
});
addMouseListener(new MouseListener() {
public void mouseClicked(MouseEvent e) {
}
public void mousePressed(MouseEvent e) {
}
public void mouseReleased(MouseEvent e) {
}
public void mouseEntered(MouseEvent e) {
}
public void mouseExited(MouseEvent e) {
}
});
}
e.getYOnScreen(), e.getClickCount(),
}
super.paintComponent(g);
if (frame.isSelected()) {
} else {
}
if (frameTitle != null) {
}
}
}
}