Created
December 13, 2014 15:44
-
-
Save why-jay/6229ac57a4d7f40fa0c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JPanel panel = new JPanel(); | |
panel.add(new JButton(new AbstractAction("name of button") { | |
public void actionPerformed(ActionEvent e) { | |
//do stuff here | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment