Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get action command in java

 public void actionPerformed(ActionEvent e){
        if (e.getActionCommand().equals("Yes") {
            //the user pressed "Yes"; do something
            ...
        }
    }
 
PREVIOUS NEXT
Tagged: #action #command #java
ADD COMMENT
Topic
Name
2+3 =