📄 datainputframe.java
字号:
package net.aetherial.gis.surface;
import javax.swing.*;
import java.awt.*;
public class DataInputFrame extends JFrame {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JScrollPane jScrollPane1 = new JScrollPane();
JTextArea jTextArea1 = new JTextArea();
JLabel jLabel1 = new JLabel();
GridLayout gridLayout1 = new GridLayout();
public DataInputFrame() {
try {
jbInit();
}
catch(Exception ex) {
ex.printStackTrace();
}
}
void jbInit() throws Exception {
this.getContentPane().setLayout(borderLayout1);
jTextArea1.setText("");
jLabel1.setText("数据读取窗口");
jPanel1.setLayout(gridLayout1);
this.getContentPane().add(jPanel1, BorderLayout.NORTH);
jPanel1.add(jLabel1, null);
this.getContentPane().add(jScrollPane1, BorderLayout.CENTER);
jScrollPane1.getViewport().add(jTextArea1, null);
}
public static void main(String[] args) {
DataInputFrame dataInputFrame = new DataInputFrame();
dataInputFrame.setSize(500,500);
dataInputFrame.show();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -