日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

java 验证码 添加背景图_java登陆界面怎么加背景图 会的我加你

發布時間:2025/3/15 64 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java 验证码 添加背景图_java登陆界面怎么加背景图 会的我加你 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

publicvoiduserInit(){this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//設置關閉框架的同時結束程序this.setSize(500,300);//設置框架大小為長500,寬300this.setResizable(fa...

public void userInit(){

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//設置關閉框架的同時結束程序

this.setSize(500,300);//設置框架大小為長500,寬300

this.setResizable(false);//設置框架不可以改變大小

this.setTitle("學生管理系統");//設置框架標題

this.pnluser.setLayout(null);//設置面板布局管理

this.pnluser.setBackground(Color.pink);//設置面板背景顏色

this.lbluserLogIn.setText("學生管理系統");//設置標簽標題

this.lbluserLogIn.setFont(new Font("宋體",Font.BOLD | Font.ITALIC,20));//設置標簽字體

this.lbluserLogIn.setForeground(Color.RED);//設置標簽字體顏色

this.lbluserName.setText("用戶名:");

this.lbluserPWD.setText("密 碼:");

this.btnSub.setText("登錄");

this.btnReset.setText("重置");

this.lbluserLogIn.setBounds(200,15,200,20);//設置標簽x坐標120,y坐標15,長60,寬20

this.lbluserName.setBounds(90,55,60,20);

this.lbluserPWD.setBounds(90,85,60,25);

this.txtName.setBounds(160,55,200,20);

this.pwdPwd.setBounds(160,85,200,20);

this.btnSub.setBounds(85,120,60,20);

this.btnSub.addActionListener(new ActionListener()//匿名類實現ActionListener接口

{

public void actionPerformed(ActionEvent e){

btnsub_ActionEvent(e);

}

}

);

this.btnReset.setBounds(155,120,60,20);

this.btnReset.addActionListener(new ActionListener()//匿名類實現ActionListener接口

{

public void actionPerformed(ActionEvent e){

btnreset_ActionEvent(e);

}

}

展開

總結

以上是生活随笔為你收集整理的java 验证码 添加背景图_java登陆界面怎么加背景图 会的我加你的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。