package TextMenu;
import DisplayProject.CloseHideAdaptor;
import DisplayProject.Constants;
import DisplayProject.CursorMgr;
import DisplayProject.DataField;
import DisplayProject.GridField;
import DisplayProject.UDSWindow;
import DisplayProject.UIutils;
import DisplayProject.WindowManager;
import DisplayProject.WindowSystem;
import DisplayProject.WindowUsageMap;
import DisplayProject.actions.AppletConnectionInfo;
import DisplayProject.actions.CommandType;
import DisplayProject.actions.HeightPolicy;
import DisplayProject.actions.UserWindow;
import DisplayProject.actions.WidgetState;
import DisplayProject.actions.WidthPolicy;
import DisplayProject.binding.BindingManager;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import DisplayProject.controls.MenuSeparator;
import DisplayProject.events.AboutMenuListener;
import DisplayProject.events.ClientEventManager;
import DisplayProject.factory.CompoundFieldFactory;
import DisplayProject.factory.DataFieldFactory;
import DisplayProject.factory.MenuFactory;
import DisplayProject.factory.PushButtonFactory;
import DisplayProject.plaf.Win32LookAndFeel;
import DisplayProject.printing.PrintActionListener;
import DisplayProject.printing.PrintSetupActionListener;
import Framework.ErrorMgr;
import Framework.EventHandle;
import Framework.EventManager;
import Framework.EventRegistration;
import Framework.File;
import Framework.ForteKeyboardFocusManager;
import Framework.FrameworkUtils;
import Framework.ParameterHolder;
import Framework.RuntimeProperties;
import Framework.UsageException;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ComponentListener;
import java.awt.event.KeyEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.String;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.KeyStroke;
import javax.swing.UIManager;
import javax.swing.text.DefaultEditorKit;
/**
* Main<p>
* <p>
* @author Generated from Forte
* @since 19-Nov-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@UDSWindow()
@SuppressWarnings("serial")
public class Main
extends JFrame
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
protected File DefaultHelpFile;
protected BindingManager bindingManager = null;
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private String someText;
// ------------
// Constructors
// ------------
public Main() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
this.initialize();
}
// ----------------------
// Accessors and Mutators
// ----------------------
public File getDefaultHelpFile() {
return DefaultHelpFile;
}
public void setDefaultHelpFile(File defaultHelpFile) {
DefaultHelpFile = defaultHelpFile;
UserWindow.createHelp(this, defaultHelpFile);
}
public void setHelpURL(String urlString) {
try {
URL url = new URL(urlString);
UserWindow.createHelp(this, url);
} catch (MalformedURLException e) {
UsageException err = new UsageException("Cannot create help URL", e);
ErrorMgr.addError(err);
throw err;
}
}
protected BindingManager getBindingManager() {
if (this.bindingManager == null) {
this.bindingManager = new BindingManager(this);
}
return bindingManager;
}
public void setSomeText(String someText) {
String oldValue = this.someText;
this.someText = someText;
this.qq_Listeners.firePropertyChange("someText", oldValue, this.someText);
}
public String getSomeText() {
return this.someText;
}
// -------
// Methods
// -------
public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(property, listener);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(property, listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(listener);
}
/**
* display<p>
* <p>
*/
public void display() {
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration windowSystem_TextMenuStatusChange = ClientEventManager.register( WindowSystem.class, "TextMenuStatusChange" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------------------
// Window.TextMenuStatusChange
// ---------------------------
else if (qq_currentEvent.isEvent(windowSystem_TextMenuStatusChange)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
int cutState = ((ParameterHolder)qq_currentEvent.getParameter("CutState")).getInt();
int copyState = ((ParameterHolder)qq_currentEvent.getParameter("CopyState")).getInt();
int pasteState = ((ParameterHolder)qq_currentEvent.getParameter("PasteState")).getInt();
int deleteState = ((ParameterHolder)qq_currentEvent.getParameter("DeleteState")).getInt();
int selectAllState = ((ParameterHolder)qq_currentEvent.getParameter("SelectAllState")).getInt();
int undoState = ((ParameterHolder)qq_currentEvent.getParameter("UndoState")).getInt();
int redoState = ((ParameterHolder)qq_currentEvent.getParameter("RedoState")).getInt();
WidgetState.set(this.getqq_editCopy(), copyState);
WidgetState.set(this.getqq_editCut(), cutState);
WidgetState.set(this.getqq_editPaste(), pasteState);
WidgetState.set(this.getqq_editDelete(), deleteState);
WidgetState.set(this.getqq_editSelectall(), selectAllState);
if (copyState == Constants.MS_ENABLED) {
WidgetState.set(this.getqq_copyButton(), Constants.FS_UPDATE);
}
else {
WidgetState.set(this.getqq_copyButton(), Constants.FS_DISABLED);
}
if (copyState == Constants.MS_ENABLED) {
WidgetState.set(this.getqq_cutButton(), Constants.FS_UPDATE);
}
else {
WidgetState.set(this.getqq_cutButton(), Constants.FS_DISABLED);
}
if (copyState == Constants.MS_ENABLED) {
WidgetState.set(this.getqq_pasteButton(), Constants.FS_UPDATE);
}
else {
WidgetState.set(this.getqq_pasteButton(), Constants.FS_DISABLED);
}
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
}
EventManager.deregister( TaskHandle_Shutdown_langThreadcurrentThread );
EventManager.deregister( windowSystem_TextMenuStatusChange );
}
//catch (Exception qq_error) {
//Logger.getLogger("task.part.Event").error("Event loop terminated by unhandled exception: " + qq_error.getMessage(), qq_error );
//throw qq_error;
//}
finally {
EventManager.endEventLoop();
UserWindow.close(this);
}
}
// ------------------
// Window Definitions
// ------------------
// <editor-fold defaultstate="collapsed" desc="Window Definitions">
private int qq_defaultSet = 1;
private int qq_msgNumber = 0;
private int qq_msgSet = 0;
protected Window primaryWindow = null;
protected int initialX;
protected int initialY;
protected int qq_SystemClosePolicy = Constants.SC_ENABLEDSHUTDOWN;
protected int qq_initialPositionPolicy = Constants.PP_SYSTEMDEFAULT;
public DataField qq_someText;
public GridField qq_GridField34;
public JButton qq_copyButton;
public JButton qq_cutButton;
public JButton qq_pasteButton;
public JMenu qq_edit;
public JMenu qq_file;
public JMenu qq_help;
public JMenuBar qq_MainMenuBar;
public JMenuItem qq_editCopy;
public JMenuItem qq_editCut;
public JMenuItem qq_editDelete;
public JMenuItem qq_editPaste;
public JMenuItem qq_editSelectall;
public JMenuItem qq_fileExit;
public JMenuItem qq_fileNew;
public JMenuItem qq_fileOpen;
public JMenuItem qq_filePrint;
public JMenuItem qq_filePrintSetup;
public JMenuItem qq_fileSave;
public JMenuItem qq_helpAbout;
public JMenuItem qq_helpContents;
public JMenuItem qq_helpOnHelp;
public JMenuItem qq_helpSearch;
public JPanel Form;
public MenuSeparator qq_separator1;
public MenuSeparator qq_separator2;
public MenuSeparator qq_separator;
/**
* qq_fileNew: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileNew() {
if (qq_fileNew == null) {
qq_fileNew = MenuFactory.newMenuItem("fileNew", true);
qq_fileNew.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_fileNew, Constants.CT_DEFAULT);
qq_fileNew.setText( "New" );
qq_fileNew.setVisible(true);
}
return qq_fileNew;
}
public void setqq_fileNew(JMenuItem value) {
JMenuItem oldValue = qq_fileNew;
qq_fileNew = value;
this.qq_Listeners.firePropertyChange("qq_fileNew", oldValue, value);
}
/**
* qq_fileOpen: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileOpen() {
if (qq_fileOpen == null) {
qq_fileOpen = MenuFactory.newMenuItem("fileOpen", true);
qq_fileOpen.setVerifyInputWhenFocusTarget(true);
qq_fileOpen.setMnemonic( 'O' );
CommandType.set(qq_fileOpen, Constants.CT_CUSTOM);
qq_fileOpen.setText( "Open..." );
qq_fileOpen.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK));
qq_fileOpen.setVisible(true);
}
return qq_fileOpen;
}
public void setqq_fileOpen(JMenuItem value) {
JMenuItem oldValue = qq_fileOpen;
qq_fileOpen = value;
this.qq_Listeners.firePropertyChange("qq_fileOpen", oldValue, value);
}
/**
* qq_fileSave: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileSave() {
if (qq_fileSave == null) {
qq_fileSave = MenuFactory.newMenuItem("fileSave", true);
qq_fileSave.setVerifyInputWhenFocusTarget(true);
qq_fileSave.setMnemonic( 'S' );
CommandType.set(qq_fileSave, Constants.CT_CUSTOM);
qq_fileSave.setText( "Save" );
qq_fileSave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
qq_fileSave.setVisible(true);
}
return qq_fileSave;
}
public void setqq_fileSave(JMenuItem value) {
JMenuItem oldValue = qq_fileSave;
qq_fileSave = value;
this.qq_Listeners.firePropertyChange("qq_fileSave", oldValue, value);
}
/**
* qq_separator: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator() {
if (qq_separator == null) {
qq_separator = new MenuSeparator();
qq_separator.setName("");
qq_separator.setVisible( true );
}
return qq_separator;
}
public void setqq_separator(MenuSeparator value) {
MenuSeparator oldValue = qq_separator;
qq_separator = value;
this.qq_Listeners.firePropertyChange("qq_separator", oldValue, value);
}
/**
* qq_filePrint: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_filePrint() {
if (qq_filePrint == null) {
qq_filePrint = MenuFactory.newMenuItem("filePrint", true);
qq_filePrint.setVerifyInputWhenFocusTarget(true);
qq_filePrint.addActionListener(new PrintActionListener(this));
CommandType.set(qq_filePrint, Constants.CT_PRINT);
qq_filePrint.setText( "Print..." );
qq_filePrint.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.CTRL_MASK));
qq_filePrint.setVisible(true);
}
return qq_filePrint;
}
public void setqq_filePrint(JMenuItem value) {
JMenuItem oldValue = qq_filePrint;
qq_filePrint = value;
this.qq_Listeners.firePropertyChange("qq_filePrint", oldValue, value);
}
/**
* qq_filePrintSetup: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_filePrintSetup() {
if (qq_filePrintSetup == null) {
qq_filePrintSetup = MenuFactory.newMenuItem("filePrintSetup", true);
qq_filePrintSetup.setVerifyInputWhenFocusTarget(true);
qq_filePrintSetup.addActionListener(new PrintSetupActionListener());
CommandType.set(qq_filePrintSetup, Constants.CT_PRINTSETUP);
qq_filePrintSetup.setText( "Print Setup..." );
qq_filePrintSetup.setVisible(true);
}
return qq_filePrintSetup;
}
public void setqq_filePrintSetup(JMenuItem value) {
JMenuItem oldValue = qq_filePrintSetup;
qq_filePrintSetup = value;
this.qq_Listeners.firePropertyChange("qq_filePrintSetup", oldValue, value);
}
/**
* qq_separator1: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator1() {
if (qq_separator1 == null) {
qq_separator1 = new MenuSeparator();
qq_separator1.setName("");
qq_separator1.setVisible( true );
}
return qq_separator1;
}
public void setqq_separator1(MenuSeparator value) {
MenuSeparator oldValue = qq_separator1;
qq_separator1 = value;
this.qq_Listeners.firePropertyChange("qq_separator1", oldValue, value);
}
/**
* qq_fileExit: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_fileExit() {
if (qq_fileExit == null) {
qq_fileExit = MenuFactory.newMenuItem("fileExit", true);
qq_fileExit.setVerifyInputWhenFocusTarget(true);
qq_fileExit.setMnemonic( 'x' );
qq_fileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, ActionEvent.ALT_MASK));
CommandType.set(qq_fileExit, Constants.CT_EXIT);
qq_fileExit.setText( "Exit" );
qq_fileExit.setVisible(true);
}
return qq_fileExit;
}
public void setqq_fileExit(JMenuItem value) {
JMenuItem oldValue = qq_fileExit;
qq_fileExit = value;
this.qq_Listeners.firePropertyChange("qq_fileExit", oldValue, value);
}
/**
* qq_file: transformed from: qqds_Submenu
*/
public JMenu getqq_file() {
if (qq_file == null) {
qq_file = new JMenu();
qq_file.setName("file");
qq_file.setMnemonic( 'f' );
qq_file.setText( "File" );
qq_file.setVisible(true);
qq_file.add(getqq_fileNew());
qq_file.add(getqq_fileOpen());
qq_file.add(getqq_fileSave());
qq_file.add(getqq_separator());
qq_file.add(getqq_filePrint());
qq_file.add(getqq_filePrintSetup());
qq_file.add(getqq_separator1());
qq_file.add(getqq_fileExit());
}
return qq_file;
}
/**
* qq_editCut: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editCut() {
if (qq_editCut == null) {
qq_editCut = MenuFactory.newMenuItem("editCut", true);
qq_editCut.setVerifyInputWhenFocusTarget(true);
qq_editCut.addActionListener(new DefaultEditorKit.CutAction());
qq_editCut.setRequestFocusEnabled(false);
CommandType.set(qq_editCut, Constants.CT_CUT);
qq_editCut.setText( "Cut" );
qq_editCut.setVisible(true);
}
return qq_editCut;
}
public void setqq_editCut(JMenuItem value) {
JMenuItem oldValue = qq_editCut;
qq_editCut = value;
this.qq_Listeners.firePropertyChange("qq_editCut", oldValue, value);
}
/**
* qq_editCopy: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editCopy() {
if (qq_editCopy == null) {
qq_editCopy = MenuFactory.newMenuItem("editCopy", true);
qq_editCopy.setVerifyInputWhenFocusTarget(true);
qq_editCopy.addActionListener(new DefaultEditorKit.CopyAction());
qq_editCopy.setRequestFocusEnabled(false);
CommandType.set(qq_editCopy, Constants.CT_COPY);
qq_editCopy.setText( "Copy" );
qq_editCopy.setVisible(true);
}
return qq_editCopy;
}
public void setqq_editCopy(JMenuItem value) {
JMenuItem oldValue = qq_editCopy;
qq_editCopy = value;
this.qq_Listeners.firePropertyChange("qq_editCopy", oldValue, value);
}
/**
* qq_editPaste: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editPaste() {
if (qq_editPaste == null) {
qq_editPaste = MenuFactory.newMenuItem("editPaste", true);
qq_editPaste.setVerifyInputWhenFocusTarget(true);
qq_editPaste.addActionListener(new DefaultEditorKit.PasteAction());
qq_editPaste.setRequestFocusEnabled(false);
CommandType.set(qq_editPaste, Constants.CT_PASTE);
qq_editPaste.setText( "Paste" );
qq_editPaste.setVisible(true);
}
return qq_editPaste;
}
public void setqq_editPaste(JMenuItem value) {
JMenuItem oldValue = qq_editPaste;
qq_editPaste = value;
this.qq_Listeners.firePropertyChange("qq_editPaste", oldValue, value);
}
/**
* qq_editDelete: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editDelete() {
if (qq_editDelete == null) {
qq_editDelete = MenuFactory.newMenuItem("editDelete", true);
qq_editDelete.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_editDelete, Constants.CT_DELETE);
qq_editDelete.setText( "Delete" );
qq_editDelete.setVisible(true);
}
return qq_editDelete;
}
public void setqq_editDelete(JMenuItem value) {
JMenuItem oldValue = qq_editDelete;
qq_editDelete = value;
this.qq_Listeners.firePropertyChange("qq_editDelete", oldValue, value);
}
/**
* qq_editSelectall: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_editSelectall() {
if (qq_editSelectall == null) {
qq_editSelectall = MenuFactory.newMenuItem("editSelectall", true);
qq_editSelectall.setVerifyInputWhenFocusTarget(true);
qq_editSelectall.addActionListener(new UIutils.SelectAllAction());
CommandType.set(qq_editSelectall, Constants.CT_SELECTALL);
qq_editSelectall.setText( "Select All" );
qq_editSelectall.setVisible(true);
}
return qq_editSelectall;
}
public void setqq_editSelectall(JMenuItem value) {
JMenuItem oldValue = qq_editSelectall;
qq_editSelectall = value;
this.qq_Listeners.firePropertyChange("qq_editSelectall", oldValue, value);
}
/**
* qq_edit: transformed from: qqds_Submenu
*/
public JMenu getqq_edit() {
if (qq_edit == null) {
qq_edit = new JMenu();
qq_edit.setName("edit");
qq_edit.setMnemonic( 'e' );
qq_edit.setText( "Edit" );
qq_edit.setVisible(true);
qq_edit.add(getqq_editCut());
qq_edit.add(getqq_editCopy());
qq_edit.add(getqq_editPaste());
qq_edit.add(getqq_editDelete());
qq_edit.add(getqq_editSelectall());
}
return qq_edit;
}
/**
* qq_helpContents: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpContents() {
if (qq_helpContents == null) {
qq_helpContents = MenuFactory.newMenuItem("helpContents", true);
qq_helpContents.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_helpContents, Constants.CT_HELPCONTENTS);
qq_helpContents.setText( "Contents" );
qq_helpContents.setVisible(true);
}
return qq_helpContents;
}
public void setqq_helpContents(JMenuItem value) {
JMenuItem oldValue = qq_helpContents;
qq_helpContents = value;
this.qq_Listeners.firePropertyChange("qq_helpContents", oldValue, value);
}
/**
* qq_helpSearch: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpSearch() {
if (qq_helpSearch == null) {
qq_helpSearch = MenuFactory.newMenuItem("helpSearch", true);
qq_helpSearch.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_helpSearch, Constants.CT_HELPSEARCH);
qq_helpSearch.setText( "Search" );
qq_helpSearch.setVisible(true);
}
return qq_helpSearch;
}
public void setqq_helpSearch(JMenuItem value) {
JMenuItem oldValue = qq_helpSearch;
qq_helpSearch = value;
this.qq_Listeners.firePropertyChange("qq_helpSearch", oldValue, value);
}
/**
* qq_helpOnHelp: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpOnHelp() {
if (qq_helpOnHelp == null) {
qq_helpOnHelp = MenuFactory.newMenuItem("helpOnHelp", true);
qq_helpOnHelp.setVerifyInputWhenFocusTarget(true);
CommandType.set(qq_helpOnHelp, Constants.CT_HELPONHELP);
qq_helpOnHelp.setText( "Help" );
qq_helpOnHelp.setVisible(true);
}
return qq_helpOnHelp;
}
public void setqq_helpOnHelp(JMenuItem value) {
JMenuItem oldValue = qq_helpOnHelp;
qq_helpOnHelp = value;
this.qq_Listeners.firePropertyChange("qq_helpOnHelp", oldValue, value);
}
/**
* qq_separator2: transformed from: qqds_MenuSeparator
*/
public MenuSeparator getqq_separator2() {
if (qq_separator2 == null) {
qq_separator2 = new MenuSeparator();
qq_separator2.setName("");
qq_separator2.setVisible( true );
}
return qq_separator2;
}
public void setqq_separator2(MenuSeparator value) {
MenuSeparator oldValue = qq_separator2;
qq_separator2 = value;
this.qq_Listeners.firePropertyChange("qq_separator2", oldValue, value);
}
/**
* qq_helpAbout: transformed from: qqds_MenuCommand
*/
public JMenuItem getqq_helpAbout() {
if (qq_helpAbout == null) {
qq_helpAbout = MenuFactory.newMenuItem("helpAbout", true);
qq_helpAbout.setVerifyInputWhenFocusTarget(true);
qq_helpAbout.addActionListener(new AboutMenuListener());
CommandType.set(qq_helpAbout, Constants.CT_ABOUT);
qq_helpAbout.setText( "About" );
qq_helpAbout.setVisible(true);
}
return qq_helpAbout;
}
public void setqq_helpAbout(JMenuItem value) {
JMenuItem oldValue = qq_helpAbout;
qq_helpAbout = value;
this.qq_Listeners.firePropertyChange("qq_helpAbout", oldValue, value);
}
/**
* qq_help: transformed from: qqds_Submenu
*/
public JMenu getqq_help() {
if (qq_help == null) {
qq_help = new JMenu();
qq_help.setName("help");
qq_help.setMnemonic( 'h' );
qq_help.setText( "Help" );
qq_help.setVisible(true);
qq_help.add(getqq_helpContents());
qq_help.add(getqq_helpSearch());
qq_help.add(getqq_helpOnHelp());
qq_help.add(getqq_separator2());
qq_help.add(getqq_helpAbout());
}
return qq_help;
}
/**
* qq_MainMenuBar: transformed from: qqds_MenuBar
*/
public JMenuBar getqq_MenuBar() {
if (qq_MainMenuBar == null) {
qq_MainMenuBar = MenuFactory.newMenuBar();
qq_MainMenuBar.setName("MainMenuBar");
qq_MainMenuBar.setBorderPainted(false);
this.qq_MainMenuBar.add(getqq_file());
this.qq_MainMenuBar.add(getqq_edit());
this.qq_MainMenuBar.add(getqq_help());
}
return qq_MainMenuBar;
}
public void setqq_MainMenuBar(JMenuBar value) {
JMenuBar oldValue = qq_MainMenuBar;
qq_MainMenuBar = value;
this.qq_Listeners.firePropertyChange("qq_MainMenuBar", oldValue, value);
}
/**
* qq_someText: transformed from: qqds_DataField
* TagId=33
* isInherited=FALSE
*/
public DataField getqq_someText() {
if (qq_someText == null) {
// Mask type: MK_NONE
qq_someText = DataFieldFactory.newDataField("someText", 48, Constants.MK_NONE);
qq_someText.setOriginalFormatText(null);
qq_someText.setHorizontalAlignment(JTextField.LEFT);
getBindingManager().bindComponent(qq_someText, "someText");
WidthPolicy.set(qq_someText, Constants.SP_EXPLICIT);
HeightPolicy.set(qq_someText, Constants.SP_NATURAL);
qq_someText.setMinimumSize(new Dimension(297, 19));
qq_someText.setSize(new Dimension(297, 19));
qq_someText.setLocation(23, 53);
}
return qq_someText;
}
public void setqq_someText(DataField value) {
DataField oldValue = qq_someText;
qq_someText = value;
this.qq_Listeners.firePropertyChange("qq_someText", oldValue, value);
}
/**
* qq_cutButton: transformed from: qqds_PushButton
* TagId=35
* isInherited=FALSE
*/
public JButton getqq_cutButton() {
if (qq_cutButton == null) {
qq_cutButton = PushButtonFactory.newInstance("cutButton", "Cut");
qq_cutButton.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_cutButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_cutButton, Constants.SP_NATURAL);
qq_cutButton.setMinimumSize(new Dimension(31, 21));
}
return qq_cutButton;
}
public void setqq_cutButton(JButton value) {
JButton oldValue = qq_cutButton;
qq_cutButton = value;
this.qq_Listeners.firePropertyChange("qq_cutButton", oldValue, value);
}
/**
* qq_copyButton: transformed from: qqds_PushButton
* TagId=36
* isInherited=FALSE
*/
public JButton getqq_copyButton() {
if (qq_copyButton == null) {
qq_copyButton = PushButtonFactory.newInstance("copyButton", "Copy");
qq_copyButton.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_copyButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_copyButton, Constants.SP_NATURAL);
qq_copyButton.setMinimumSize(new Dimension(40, 21));
}
return qq_copyButton;
}
public void setqq_copyButton(JButton value) {
JButton oldValue = qq_copyButton;
qq_copyButton = value;
this.qq_Listeners.firePropertyChange("qq_copyButton", oldValue, value);
}
/**
* qq_pasteButton: transformed from: qqds_PushButton
* TagId=37
* isInherited=FALSE
*/
public JButton getqq_pasteButton() {
if (qq_pasteButton == null) {
qq_pasteButton = PushButtonFactory.newInstance("pasteButton", "Paste");
qq_pasteButton.setVerifyInputWhenFocusTarget(true);
WidthPolicy.set(qq_pasteButton, Constants.SP_NATURAL);
HeightPolicy.set(qq_pasteButton, Constants.SP_NATURAL);
qq_pasteButton.setMinimumSize(new Dimension(42, 21));
}
return qq_pasteButton;
}
public void setqq_pasteButton(JButton value) {
JButton oldValue = qq_pasteButton;
qq_pasteButton = value;
this.qq_Listeners.firePropertyChange("qq_pasteButton", oldValue, value);
}
/**
* qq_GridField34: transformed from: qqds_GridField
* TagId=34
* isInherited=FALSE
* In forte this was a 3x1 grid field.
* There are no cell margins set
* The width policy is set to Natural, and the height policy is set to Natural.
*/
protected void setqq_GridField34Properties() {
qq_GridField34.setCollapsed(true);
qq_GridField34.setHeightPolicy(Constants.SP_NATURAL);
qq_GridField34.setWidthPolicy(Constants.SP_NATURAL);
qq_GridField34.setBackground(null);
qq_GridField34.setLocation(18, 9);
}
public GridField getqq_GridField34() {
if (qq_GridField34 == null) {
qq_GridField34 = CompoundFieldFactory.newGridField("qq_GridField34", true);
setqq_GridField34Properties();
qq_GridField34.setMinimumSize(new Dimension(114, 21));
GridBagConstraints qq_gbc = new GridBagConstraints();
qq_gbc.gridx = 0; // Column 1
qq_gbc.gridy = 0; // Row 1
qq_gbc.weightx = 0;
qq_gbc.weighty = 0;
qq_gbc.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField34.add( getqq_cutButton(), qq_gbc );
GridBagConstraints qq_gbc1 = new GridBagConstraints();
qq_gbc1.gridx = 1; // Column 2
qq_gbc1.gridy = 0; // Row 1
qq_gbc1.weightx = 0;
qq_gbc1.weighty = 0;
qq_gbc1.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc1.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc1.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField34.add( getqq_copyButton(), qq_gbc1 );
GridBagConstraints qq_gbc2 = new GridBagConstraints();
qq_gbc2.gridx = 2; // Column 3
qq_gbc2.gridy = 0; // Row 1
qq_gbc2.weightx = 0;
qq_gbc2.weighty = 0;
qq_gbc2.anchor = GridBagConstraints.CENTER; // Gravity - original: CG_DEFAULT gf
qq_gbc2.fill = GridBagConstraints.NONE; // Size to parent - original: No size to parent
qq_gbc2.insets = new Insets(0, 0, 0, 0); // Top, Left, Bottom, Right Margin
qq_GridField34.add( getqq_pasteButton(), qq_gbc2 );
}
return qq_GridField34;
}
public void setqq_GridField34(GridField value) {
GridField oldValue = qq_GridField34;
qq_GridField34 = value;
this.qq_Listeners.firePropertyChange("qq_GridField34", oldValue, value);
}
/**
* Form: transformed from: qqds_Panel
* TagId=1
* isInherited=FALSE
*/
protected void setFormProperties() {
Form.setOpaque( true );
}
public JPanel getForm() {
if (Form == null) {
Form = CompoundFieldFactory.newForm();
this.setFormProperties();
Form.add( getqq_GridField34() );
Form.add( getqq_someText() );
}
return Form;
}
public void setForm(JPanel value) {
JPanel oldValue = Form;
Form = value;
this.qq_Listeners.firePropertyChange("Form", oldValue, value);
}
/**
* Gets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public int getSystemClosePolicy() {
return qq_SystemClosePolicy;
}
/**
* Sets the system close policy
*
* The SystemClosePolicy property determines how a window responds to user attempts to close it by using the native window system through the window close box or a window system menu command.
* SystemClosePolicy responds to window closure attempts according to the following parameters:
* <li>Constants.SC_DISABLED Does not allow window closure through window system.</li>
* <li>Constants.SC_ENABLEDNOFINALIZE Window can be closed, but the contents are not verified, guaranteeing that the window will close (for example, the user clicks the Cancel button).</li>
* <li>Constants.SC_ENABLEDFINALIZE Posts the RequestFinalize method on the window, with a reason code of zero.</li>
* <li>Constants.SC_ENABLEDSHUTDOWN Posts Shutdown event to window�s task and to all tasks started by that task. This is the default value.</li>
*/
public void setSystemClosePolicy(int policy) {
this.qq_SystemClosePolicy = policy;
if (policy == Constants.SC_DISABLED) {
this.addComponentListener(new CloseHideAdaptor(this));
} else {
for (ComponentListener cl : this.getComponentListeners()) {
if (cl instanceof CloseHideAdaptor) {
this.removeComponentListener(cl);
break;
}
}
}
}
/**
* Gets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public int getInitialPositionPolicy() {
return qq_initialPositionPolicy;
}
/**
* Sets the initial position policy
*
* The InitialPositionPolicy property sets the position of a main window when it is first displayed, relative to a primary window or the screen.
* You use the InitialPositionPolicy property in conjunction with the InitialX, InitialY properties.
* InitialPositionPolicy sets the position of a window according to the following values:
* <li>Constants.PP_SYSTEMDEFAULT Accepts the default window system placement specification.</li>
* <li>Constants.PP_PRIMARYCENTERED Centers the window relative to the window specified as the PrimaryWindow property.</li>
* <li>Constants.PP_PRIMARYRELATIVE Positions the window relative to the primary window, using the PrimaryWindow, InitialX and InitialY attributes.</li>
* <li>Constants.PP_SCREENCENTERED Centers the window relative to the screen.</li>
* <li>Constants.PP_SCREENRELATIVE Positions the window relative to the screen, using the InitialX and InitialY properties.</li>
*/
public void setInitialPositionPolicy(int policy) {
this.qq_initialPositionPolicy = policy;
}
/**
* Gets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public Window getPrimaryWindow() {
return this.primaryWindow;
}
/**
* Sets the primary window
*
* The primary window property designates a window, known as a primary window, to serve as an initial position reference for the current window.
* When a main window first realizes itself through the Open method on the UserWindow, it assumes a position according to the InitialPositionPolicy attribute.
* When the InitialPositionPolicy property is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_PRIMARYCENTERED (centered on the primary window),
* the window realizes itself in a position relative to the designated primary window.<p>
* <p>
* To take a position relative to the primary window, a window uses the PrimaryWindow attribute in conjunction with the InitialX and InitialY properties, which specify the window�s horizontal and vertical coordinates.
*/
public void setPrimaryWindow(Window value) {
this.primaryWindow = value;
}
/**
* Gets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialX() {
return initialX;
}
/**
* Sets the InitialX value
*
* The InitialX property (integer) is the window�s initial horizontal screen position, relative to a primary window or the screen. It is specified in mils.
* InitialX applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialX, and its corollary, InitialY, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialX(int value) {
this.initialX = value;
}
/**
* Gets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public int getInitialY() {
return initialY;
}
/**
* Sets the InitialY value
*
* The InitialY property (integer) is the window�s initial vertical screen position, relative to a primary window or the screen. It is specified in mils.
* InitialY applies only to main windows and only when a window�s InitialPositionPolicy attribute is set to PP_PRIMARYRELATIVE (relative to the primary window) or PP_SCREENRELATIVE (relative to the screen).
* InitialY, and its corollary, InitialX, work in conjunction with the PrimaryWindow and InitialPositionPolicy attributes to determine the position of a main window when it is first realized.
*/
public void setInitialY(int value) {
this.initialY = value;
}
/**
* Gets the default message set number for the window and its widgets.
*/
public int getSetNum() {
return this.qq_defaultSet;
}
/**
* Sets the default message set number for the window and its widgets.
*/
public void setSetNum(int value) {
this.qq_defaultSet = value;
}
/**
* Gets the message set number for the message number of the window's title.
*/
public int getTitleSetNum() {
return this.qq_msgSet;
}
/**
* Sets the message set number for the message number of the window's title.
*/
public void setTitleSetNum(int value) {
this.qq_msgSet = value;
}
/**
* Gets the message number for the message number of the window's title.
*/
public int getTitleMsgNum() {
return this.qq_msgNumber;
}
/**
* Sets the message number for the message number of the window's title.
*/
public void setTitleMsgNum(int value) {
this.qq_msgNumber = value;
}
/**
* Initialise the window and all its children.
*/
protected void initialize() {
if (this.Form == null) {
this.setName( "main" );
this.setTitle( "" );
this.setSystemClosePolicy(Constants.SC_ENABLEDSHUTDOWN);
this.setJMenuBar( getqq_MenuBar() );
if (this.getContentPane() != this.getForm()) {
this.setContentPane(getForm());
}
this.qq_setupWindowUsage();
this.setResizable( false );
this.setAlwaysOnTop(false);
UserWindow.setIconizeEnabled(this, true);
WindowManager.addWindowListener(this);
this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
this.setUsage(DisplayProject.Constants.WU_UPDATE);
UIutils.processGUIActions();
this.pack();
this.setInitialX(0);
this.setInitialY(0);
this.setInitialPositionPolicy(Constants.PP_SYSTEMDEFAULT);
}
}
// ----------------
// Window usage
//-----------------
protected WindowUsageMap usage = new WindowUsageMap();
public int getUsage() {
return this.usage.getUsage();
}
public WindowUsageMap getUsageMap() {
return this.usage;
}
/**
* Sets the window usage
*
* The Usage property sets the state for all a window�s child widgets at once, providing collective widget state changes on a predefined basis. A widget�s state determines how the widget reacts to mouse actions and how it displays itself. A window�s Usage property provides a convenient way to control the states of a group of widgets in the context of their parent window. With the Usage attribute, you can synchronize widget states to conform to a pattern you establish for the window.
* The Usage attribute accepts the following values:
* <li>Constants.WU_EDIT Edit usage: widgets themselves are editable, but not underlying data.</li>
* <li>Constants.WU_QUERY Query only usage: widget data is editable, but not widgets themselves.</li>
* <li>Constants.WU_UPDATE Update usage: mouse actions and keyboard input accepted. Widgets themselves are changeable. This is the default.</li>
* <li>Constants.WU_USER1 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER2 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_USER3 A user-defined usage. Default values same as WU_UPDATE.</li>
* <li>Constants.WU_VIEW View-only usage: no keyboard input is accepted. Widget posts Click events for mouse clicks.</li>
*/
public void setUsage(int usage) {
this.usage.setUsage(usage);
}
public void qq_setupWindowUsage() {
this.usage = new WindowUsageMap();
this.usage.add(getqq_fileNew(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_fileOpen(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_fileSave(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_filePrint(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_filePrintSetup(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator1(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_fileExit(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_file(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editCut(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editCopy(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editPaste(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editDelete(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_editSelectall(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_edit(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpContents(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpSearch(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpOnHelp(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_separator2(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_helpAbout(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_help(), Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED, Constants.MS_ENABLED);
this.usage.add(getqq_someText(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_GridField34(), Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_QUERY, Constants.FS_UPDATE, Constants.FS_UPDATE, Constants.FS_UPDATE);
this.usage.add(getqq_cutButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_copyButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
this.usage.add(getqq_pasteButton(), Constants.FS_UPDATE, Constants.FS_VIEWONLY, Constants.FS_QUERY, Constants.FS_INACTIVE, Constants.FS_INACTIVE, Constants.FS_INACTIVE);
}
// </editor-fold>
// -----------
// Main method
// -----------
public static void main( String[] args ) {
FrameworkUtils.setCmdLineArgs(args);
AppletConnectionInfo client = null;
try {
// Install our own focus manager. MUST be done prior to setting the
// UIManager, otherwise you'll run into issues like things have the wrong focus.
KeyboardFocusManager.setCurrentKeyboardFocusManager(new ForteKeyboardFocusManager());
UIManager.setLookAndFeel(new Win32LookAndFeel());
client = UserWindow.postAPPLETStarted();
Main main_start = new Main();
main_start.display();
UserWindow.postAPPLETStopped(client);
System.exit(0);
} catch (Throwable e) {
ErrorMgr.showErrors(null, "Unhandled exception", e);
UserWindow.postAPPLETStopped(client);
System.exit(0);
}
}
} // end class main
// c Pass 2 Conversion Time: 390 milliseconds