📄 statisticapp.java
字号:
package gui;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
import model.Datenmodell;
import model.DatenmodellImpl;
public class StatisticApp {
private JFrame frame;
private GraphicPane gPane;
private InputPane iPane;
private ResultPane rPane;
private Datenmodell model;
public StatisticApp(){
frame=new JFrame("Statistic");
model=new DatenmodellImpl();
gPane=new GraphicPane(model);
iPane=new InputPane(model);
rPane=new ResultPane(model);
init();
}
private void init(){
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(400,500);
// frame.setResizable(false);
frame.setVisible(true);
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add(gPane,BorderLayout.NORTH);
frame.getContentPane().add(iPane,BorderLayout.CENTER);
frame.getContentPane().add(rPane,BorderLayout.SOUTH);
}
public static void main(String[] args){
new StatisticApp();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -