<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ~~~ package cy.view; import javax.imageio.*; import javax.swing.*; import javax.swing.border.*; import cy.tool.*; import java.awt.*; import java.awt.event.*; import java.io.*; import cy.model.*; public class Login extends JDialog implements ActionListener { JLabel jl1,jl2,jl3;//標簽 JTextField jname;//文本框 JPasswordField jpasswd;//密碼框 JButton jlog,jcancle;//按鈕 Font f1; public static void main(String []args) { Login login=new Login(); } public Login() { jl1=new JLabel("請輸入用戶名:"); jl1.setBounds(60, 190, 150, 30); jl1.setFont(MyFont.f1); this.add(jl1); jl2=new JLabel("(或員工號)"); jl2.setForeground(Color.red); jl2.setFont(MyFont.f2); jl2.setBounds(100,210,100,30); this.add(jl2); jl3=new JLabel ("請輸入密碼:"); jl3.setBounds(60,240,150,30); jl3.setFont(MyFont.f2); this.add(jl3); jname=new JTextField(20); jname.setFocusable(true);//光標默認在這兒 jname.setBounds(180,190,120,30); jname.setFont(f1); this.add(jname); jname.setBorder(BorderFactory.createLoweredBevelBorder()); jpasswd=new JPasswordField(); jpasswd.setFocusable(true); jpasswd.setBounds(180,240,120,30); this.add(jpasswd); jpasswd.setBorder(BorderFactory.createLoweredBevelBorder()); jlog=new JButton("確 定"); jlog.addActionListener(this); jlog.setBounds(105,300,75,30); jlog.setFont(f1); jlog.setForeground(Color.blue); this.add(jlog); jcancle=new JButton("取 消"); jcancle.addActionListener(this); jcancle.setBounds(215,300,75,30); jcancle.setFont(f1); jcancle.setForeground(Color.blue); this.add(jcancle); this.setLayout(null); BackImage bi=new BackImage(); bi.setBounds(0,0,360,360); this.add(bi); this.setUndecorated(true); this.setSize(360, 360); int width=getToolkit().getDefaultToolkit().getScreenSize().width; int height=getToolkit().getDefaultToolkit().getScreenSize().height; this.setLocation(width/2-200,height/2-200); this.setVisible(true); } public void actionPerformed(ActionEvent e) { if(e.getSource()==jlog) { String userName=this.jname.getText().trim(); String passwd=new String(this.jpasswd.getPassword()); Moxing um=new Moxing(); String zhiwei=um.checkUser(userName, passwd); if(zhiwei.equals("經理")||zhiwei.equals("管理員")||zhiwei.equals("主管")) { new Main(); this.dispose(); } else { JOptionPane.showMessageDialog(this,"用戶名或密碼錯誤"); } } else if(e.getSource()==jcancle) { this.dispose(); } } } class BackImage extends JPanel { Image im; public BackImage() { try { im=ImageIO.read(new File("image/login.gif")); } catch(Exception e){} } public void paint(Graphics g) { g.drawImage(im,0,0,360,360,this); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看