Ternyata solusinya simple, untuk Menampilkan Window Center Screen, pada NetBeans tambahkan kode program berikut ini di bawah initComponents(); :
public class FormMain extends javax.swing.JFrame {
/**
* Creates new form FormMain
*/
public FormMain() {
try {
initComponents();
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
//this.setSize(screenSize);
java.awt.Dimension dialogSize = getSize();
setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);
/*Dimension a=getToolkit().getScreenSize();
int x=a.width/2 - this.getWidth()/2;
int y=a.height/2 - this.getHeight()/2;
this.setLocation(x,y);*/
}
public class FormMain extends javax.swing.JFrame {
/**
* Creates new form FormMain
*/
public FormMain() {
initComponents();
setExtendedState(MAXIMIZED_BOTH);
}
Hasilnya :
Projectnya silakan download, jika ada kesulitan ini cara downloadnya.
Semoga berguna.