//Title: Student Book Trading Center
//Version:
//Copyright: Copyright (c) 1998
//Author: Charles Stephens
//Company: Emerald City
//Description: This is a JAVA application that allows students
//to find other students to trade used books with.
package package3;

import java.awt.*;

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.setVisible(true);
}

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