校园表白墙登录系统界面

package jisuanqi;
import java.awt.*;
import javax.swing.*;
   public class ss extends JFrame{
	    static ss mainFrame = new ss();
	    JLabel lb1 = new JLabel("校园表白墙");
	    static JDialog diag = new JDialog(mainFrame);
	    static JButton bt_login = new JButton("登录");
	    static JButton bt_reset = new JButton("重置");
	    static JLabel lb_name = new JLabel("账号");
	    static JLabel lb_pass = new JLabel("密码");
	    static JTextField tf_anme = new JTextField();
	    static JPasswordField pf_pass = new JPasswordField();
	    public static void main(String[] args){
	        mainFrame.setBackground(Color.yellow);
	        mainFrame.setTitle("用户登录");
	        mainFrame.setBounds(0,0,400,320);
	        mainFrame.setLocationRelativeTo(null);
	        mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
	        Container container = mainFrame.getContentPane();
	        container.setLayout(null);
	        container.add(mainFrame.lb1);
	        mainFrame.lb1.setBounds(120,-10,200,250);
	        container.add(lb_name);
	        lb_name.setBounds(120,80,50,50);
	        container.add(tf_anme);
	        tf_anme.setBounds(190,80,130,25);
	        container.add(lb_pass);
	        lb_pass.setBounds(120,60,50,50);
	        container.add(pf_pass);
	        pf_pass.setBounds(190,40,130,25);
	        container.add(bt_login);
	        bt_login.setBounds(120,10,50,50);
	        container.add(bt_reset);
	        bt_reset.setBounds(190,10,50,50);
	        mainFrame.setVisible(true);


	    }
	}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值