// -------------------------------------------------------------------------------- // Name: Initialize // Abstract: Default constructor // -------------------------------------------------------------------------------- public void Initialize() { try { int intHeight = 170; int intWidth = 282; // Title setTitle("Add Team"); // Size setSize(intWidth, intHeight); // Java is x, y centric // Center screen CUtilities.CenterOwner(this); // No resize setResizable(false); // Very important or programs will not close properly // Exit appllication on close; does not work on JDialog setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); } catch (Exception excError) { // Save log to disk CUtilities.WriteLog(excError); } }