📄 main.java
字号:
package soft1;
import java.awt.Toolkit;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import java.awt.Dimension;
import soft1Method.*;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Main {
boolean packFrame = false;
/**
* Construct and show the application.
*/
public Main() {
//FirstPic frame = new FirstPic();
FirstPic frame=new FirstPic();
MiddleLoc mid=new MiddleLoc();
mid.setLocation1(frame);
// Validate frames that have preset sizes
// Pack frames that have useful preferred size info, e.g. from their layout
// Center the window
}
/*Login log = new Login();
log.setModal(true);
log.setLocation((screenSize.width - log.getWidth()) / 2, (screenSize.height - log.getHeight()) / 2);
log.show();
*/
/**
* Application entry point.
*
* @param args String[]
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
//UIManager.setLookAndFeel(new PgsLookAndFeel());
} catch (Exception exception) {
exception.printStackTrace();
}
new Main();
}
});
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -