
//Title:       Your Product Name
//Version:     
//Copyright:   Copyright (c) 1999
//Author:      Your Name
//Company:     Your Company
//Description: 

import java.awt.*;
import java.awt.event.*;

public class Application1 {

  
  public Application1() {
    Frame frame = new Frame1();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width) {
      frameSize.width = screenSize.width;
    }
    frame.setLocation((screenSize.width - frameSize.width)/2, (screenSize.height - frameSize.height)/2);
    frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } });
    frame.setVisible(true);
  }

  public static void main(String[] args) {
    new Application1();
  }
}

 