Page 378 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 378

인천전자마이스터고                                                                            전자회로설계과






                            txt.addMouseListener(new MouseAdapter()
                            {
                                    @Override
                                    public void mouseClicked(MouseEvent e)
                                    {

                                            Point p = txt.getLocationOnScreen();
                                            p.y += 30;
                                            keyboard.setLocation(p);
                                            keyboard.setVisible(true);
                                    }

                            });
                            setLayout(new FlowLayout());
                            add(txt);
                            add(btnOk);



                            pack();
                            setVisible(true);
                            btnOk.addActionListener(this);
                    }



                    @Override
                    public void actionPerformed(ActionEvent arg0)
                    {


                            String pw = DbSelect.GetPw();



                            if(txt.getText().equals(pw))
                            {
                                    this.setVisible(false);
                                    this.keyboard.setVisible(false);

                                    new SoundOpen();
                                    JOptionPane.showMessageDialog(this, "인증되었습니다.");
                                    (new SoundOpen()).playSound();
                                    GpioExample.go=1;
                                    System.out.println(GpioExample.state);

                                    try{




                                                         -  371  -
   373   374   375   376   377   378   379   380   381   382   383