📄 frametest.java
字号:
package net.aetherial.gis.surface.design;
import java.awt.*;
import javax.swing.*;
import net.sourceforge.mlf.metouia.MetouiaLookAndFeel;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class FrameTest
extends JFrame {
BorderLayout borderLayout1 = new BorderLayout();
// ConstructPlan jPanel1 = new ConstructPlan();
public FrameTest() {
try {
jbInit();
}
catch (Exception exception) {
exception.printStackTrace();
}
}
private void init(){
this.setSize(830, 600);
Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
this.setLocation(
(screenDim.width - 830) / 2,
(screenDim.height - 600) / 2
);
this.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
}
private void jbInit() throws Exception {
getContentPane().setLayout(borderLayout1);
this.init();
// this.getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
}
public static void main(String args[]){
try {
UIManager.setLookAndFeel(new MetouiaLookAndFeel());
}
catch (Exception ex) {
}
FrameTest ft = new FrameTest();
ft.show();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -