huanying.java~1~

来自「一個模仿ATM自動提款机功能的系統,」· JAVA~1~ 代码 · 共 35 行

JAVA~1~
35
字号
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 huanying = new HuanYing();
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?