...is.setLocationRelativeTo(this.getParent()); this.setResizable(false); setLayout(null);num.setBounds(80,50,50,20); jb.setBounds(80,80,50,20); fj.setBounds(80,110,50,20); in.setBounds(80...
...scroll;Pinjian(){c=this.getContentPane();c.setLayout(null); lname=new JLabel ("姓名");lname.setBounds(20,20,80,30);c.add(lname);tname=new JTextField ();tname.setBounds(110,20,80,30);c.add(tname);lsex=n...
...t(null);img=new ImageIcon("hehe/001.jpg");imgIcon=img;backimg=new JLabel(imgIcon);backimg.setBounds(0,0,300,300);label1=new JLabel("用户名:");label2=new JLabel("密码:");t1=new TextFiel...
...();JButton b1=new JButton();JButton b2=new JButton();public jiemianchaxun(){super("登入窗口");setBounds(200,200,360,310);setLayout(null); //不使用布局l1.setForeground(Color.red);l1.setFont(new Font("&qu...
...; Label l2=new Label(); Button b1=new Button("确定"); Test4_2(){ this.setLayout(null); l1.setBounds(60,40, 180,30); add(l1); tf.setBounds(60,80,180,30); add(tf); l2.setBounds(60,120,180,30); add...
... int ly = 200; public FrameTest(){ } public FrameTest(int x , int y) {this.lx = x;this.ly = y;this.setBounds(lx, ly, 400, 300);} public void init(){this.setBounds(lx, ly, 400, 300);this.setDefaultCloseOperati...
...);JButton b1=new JButton();JButton b2=new JButton();public jiemiantianjia(){super("登入窗口");setBounds(200,200,360,310);setLayout(null); //不使用布局l1.setForeground(Color.red);l1.setFont(new Font("&qu...
...engLuJieMian(){this.setTitle("学生信息管理系统");//设置窗口标题this.setLayout(null);//设置窗口布局管理器username.setBounds(50,40,60,20);//设置姓名标签的初始位置 this.add(username);// 将姓名标签组件添加到容器t1.setBounds(120,40,80,20);//...
...peration(JFrame.EXIT_ON_CLOSE);this.setVisible(true);this.getContentPane().setLayout(null);jButton1.setBounds(new Rectangle(42, 167, 128, 45));jButton1.setText("登陆");jButton1.addActionListener(new ha...