package com.mwq;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import com.mwq.frame.IndexFrame;
import com.mwq.frame.LandFrame;
import com.mwq.hibernate.Dao;
public class PersonnelManage {
boolean packFrame = false;
public PersonnelManage() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(UIManager
.getSystemLookAndFeelClassName());
} catch (Exception exception) {
exception.printStackTrace();
}
land();
}
});
}
public void land() {
LandFrame frame = new LandFrame();
if (packFrame) {
frame.pack();
} else {
frame.validate();
}
// 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 PersonnelManage();
}
}
uj5u.com熱心網友回復:
兄弟,你的代碼給的不全啊,import里面少了幾個類,怎么除錯,還有是解決什么問題,這邊也沒法知道。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/28426.html
標籤:MySQL
上一篇:腳本執行hive的問題
