📄 huanying.java~2~
字号:
package MainFrame;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
public class HuanYing extends JFrame {
XYLayout xYLayout1 = new XYLayout();
JLabel jLabel1 = new JLabel();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
public HuanYing() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(xYLayout1);
this.getContentPane().add(jLabel1, new XYConstraints(1, 1, 398, 291));
jLabel1.setIcon(new ImageIcon("image/1.jpg"));
jButton2.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jButton2.setText("取消");
this.getContentPane().add(jButton1, new XYConstraints(45, 305, 82, 35));
this.getContentPane().add(jButton2, new XYConstraints(210, 305, 82, 35));
jButton1.setFont(new java.awt.Font("宋体", Font.BOLD, 15));
jButton1.setText("確定");
}
public static void main(String[] args) {
HuanYing h = new HuanYing();
h.setBounds(200,200,400,400);
h.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -