Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

i have a java Registration class in my project. in this class i have used
Java
import com.sun.glass.events.KeyEvent;
and i used it for below method.but this is getting error.could you please help me if you know the problem.

Java
private void usernameKeyPressed(java.awt.event.KeyEvent evt) {                                    
        if(evt.getKeyCode() == KeyEvent.VK_ENTER){
            reg();
        }
    }                                   

    private void pass1KeyPressed(java.awt.event.KeyEvent evt) {                                 
        if(evt.getKeyCode() == KeyEvent.VK_ENTER){
            reg();
        }
    }                                

    private void pass2KeyPressed(java.awt.event.KeyEvent evt) {                                 
       if(evt.getKeyCode() == KeyEvent.VK_ENTER){
            reg();
        }
Posted
Comments
Richard MacCutchan 18-Apr-15 3:36am    
What error?
nuke_infer 18-Apr-15 5:47am    
i have solved this problem . thank you respond friend.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900