Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java swing menu click event

JMenuItem menuItem = new JMenuItem(new AbstractAction("My Menu Item") {
    public void actionPerformed(ActionEvent e) {
        // Button pressed logic goes here
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #swing #menu #click #event
ADD COMMENT
Topic
Name
7+7 =