📄 mainframe.java~20~
字号:
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Dimension;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
public class MainFrame extends JFrame
{
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
XYLayout xYLayout1 = new XYLayout();
JPanel jPanel3 = new JPanel();
JPanel jPanel4 = new JPanel();
BorderLayout borderLayout2 = new BorderLayout();
BorderLayout borderLayout3 = new BorderLayout();
Memory mm;
public MainFrame()
{
this.setSize(740,450);
this.setResizable(false);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
try
{
jbInit();
}
catch (Exception exception)
{
exception.printStackTrace();
}
mm = new Memory();
this.validate();
this.setVisible(true);
}
private void jbInit() throws Exception
{
getContentPane().setLayout(borderLayout1);
jPanel1.setBackground(Color.orange);
jPanel1.setPreferredSize(new Dimension(10, 300));
jPanel1.setLayout(xYLayout1);
jPanel3.setLayout(borderLayout2);
jPanel4.setLayout(borderLayout3);
this.getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
this.getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);
jPanel2.setPreferredSize(new Dimension(10, 150));
jPanel3.setBackground(Color.pink);
jPanel3.add(new FileSystem(),BorderLayout.CENTER);
jPanel4.setBackground(Color.orange);
jPanel4.add(mm,BorderLayout.CENTER);
jPanel1.add(jPanel3, new XYConstraints(0, 0, 514, 270));
jPanel1.add(jPanel4, new XYConstraints(514, 0, 227, 270));
}
public void main(String[] args)
{
new MainFrame();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -