yListener(){Р public void keyTyped(KeyEvent e){}Р public void keyReleased(KeyEvent e){}Р public void keyPressed(KeyEvent e){Р //String pwd = userpwd.getPassword().toString().trim();Р //String epwd = enterpassword.getPassword().toString().trim();Р if((e.getKeyChar()==KeyEvent.VK_ENTER) && ((userpwd.getPassword().toString().trim())==(enterpassword.getPassword().toString().trim()))){Р add.requestFocus();Р }Р else if((e.getKeyChar()==(KeyEvent.VK_ENTER)) && ((userpwd.getPassword().toString().trim())!=(enterpassword.getPassword().toString().trim()))){Р userpwd.setText("");Р enterpassword.setText("");Р userpwd.requestFocus();Р }Р Р }Р Р });Р ponent(enterpassword,1,3,1,1,false);Р //logoin = new javax.swing.JButton(logoon);Р add.addKeyListener(new KeyListener(){Р public void keyTyped(KeyEvent e){}