Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

jbutton actionperformed

JButton button = new JButton("Click me");
button.addActionListener(new ActionListener() {
    @Override
    public void actionPerformed(ActionEvent e) {
        System.out.println("button was clicked!");
    }
}
 
PREVIOUS NEXT
Tagged: #jbutton #actionperformed
ADD COMMENT
Topic
Name
3+3 =