home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 15
/
BUGCD1998_06.ISO
/
aplic
/
jbuilder
/
jsamples.z
/
dbSampleApp.java
< prev
next >
Wrap
Text File
|
1997-07-03
|
802b
|
28 lines
package borland.samples.tutorial.dataset.dbsample;
import java.awt.*;
public class dbSampleApp {
//Construct the application
public dbSampleApp() {
dbSampleFrame frame = new dbSampleFrame();
frame.pack();
//Center the window
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = frame.getPreferredSize();
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);
}
//Main method
static public void main(String[] args) {
new dbSampleApp();
}
}