* Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* modification, are permitted provided that the following conditions
...
@@ -29,50 +29,70 @@
...
@@ -29,50 +29,70 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
/*
*/
importjava.awt.*;
importjava.awt.Dimension;
importjava.io.*;
importjava.awt.Toolkit;
importjava.awt.event.*;
importjava.awt.event.ActionEvent;
importjava.beans.*;
importjava.awt.event.ActionListener;
importjavax.swing.*;
importjava.awt.event.WindowAdapter;
importjavax.swing.border.*;
importjava.awt.event.WindowEvent;
importjava.io.InputStream;
importjavax.swing.plaf.metal.*;
importjavax.swing.ButtonGroup;
importjavax.swing.JCheckBoxMenuItem;
importjavax.swing.JComponent;
importjavax.swing.JDesktopPane;
importjavax.swing.JFileChooser;
importjavax.swing.JFrame;
importjavax.swing.JInternalFrame;
importjavax.swing.JMenu;
importjavax.swing.JMenuBar;
importjavax.swing.JMenuItem;
importjavax.swing.JOptionPane;
importjavax.swing.JRadioButtonMenuItem;
importjavax.swing.UIManager;
importjavax.swing.plaf.metal.DefaultMetalTheme;
importjavax.swing.plaf.metal.MetalTheme;
importjavax.swing.plaf.metal.OceanTheme;
/**
/**
* This is the main container frame for the Metalworks demo app
* This is the main container frame for the Metalworks demo app
*
*
* @author Steve Wilson
* @author Steve Wilson
*/
* @author Alexander Kouznetsov
publicclassMetalworksFrameextendsJFrame{
*/
@SuppressWarnings("serial")
publicfinalclassMetalworksFrameextendsJFrame{
JMenuBarmenuBar;
JMenuBarmenuBar;
JDesktopPanedesktop;
JDesktopPanedesktop;
JInternalFrametoolPalette;
JInternalFrametoolPalette;
JCheckBoxMenuItemshowToolPaletteMenuItem;
JCheckBoxMenuItemshowToolPaletteMenuItem;
staticfinalIntegerDOCLAYER=5;
staticfinalIntegerDOCLAYER=newInteger(5);
staticfinalIntegerTOOLLAYER=6;
staticfinalIntegerTOOLLAYER=newInteger(6);
staticfinalIntegerHELPLAYER=7;
staticfinalIntegerHELPLAYER=newInteger(7);
staticfinalStringABOUTMSG="Metalworks \n \nAn application written to "
+"show off the Java Look & Feel. \n \nWritten by the JavaSoft "
staticfinalStringABOUTMSG="Metalworks \n \nAn application written to show off the Java Look & Feel. \n \nWritten by the JavaSoft Look & Feel Team \n Michael Albers\n Tom Santos\n Jeff Shapiro\n Steve Wilson";
+"Look & Feel Team \n Michael Albers\n Tom Santos\n "
Metalworks is a simple Swing-based simulated email application. It shows off several features of Swing including: JInternalFrame, JTabbedPane, JFileChooser, JEditorPane and JRadioButtonMenuItem. It is optimized to work with the Java Look & Feel and shows use of several Java L&F specific features including themes.
Metalworks is a simple Swing-based simulated email application. It shows off several features of Swing including: JInternalFrame, JTabbedPane, JFileChooser, JEditorPane and JRadioButtonMenuItem. It is optimized to work with the Java Look & Feel and shows use of several Java L&F specific features including themes.
<H1>
<H1>
Metalworks Features</H1>
Metalworks Features</H1>
The functionality of the Metalworks demo is minimal, and many controls are non-functional. They are only intended to show how to construct the UI for such interfaces. Things that do work in the Metalworks demo include:
The functionality of the Metalworks demo is minimal, and many controls are non-functional. They are only intended to show how to construct the UI for such interfaces. Things that do work in the Metalworks demo include:
...
@@ -28,6 +28,6 @@ The functionality of the Metalworks demo is minimal, and many controls are non-f
...
@@ -28,6 +28,6 @@ The functionality of the Metalworks demo is minimal, and many controls are non-f