Computer Science Canada

Making pane.add (Jbutton) do an action (Ready to Program 1.7.1.0)

Author:  legosz [ Thu Dec 10, 2015 12:57 pm ]
Post subject:  Making pane.add (Jbutton) do an action (Ready to Program 1.7.1.0)

I created buttons using pane.add (new JButton(" ")); and now I'm wondering how I could make those buttons preform an action, that action being on click they display a number. I looked around and couldn't find anything like that, action listeners, action preformed, etc. but still none of those helped me. If anyone could help me out with this i would appreciate it a bunch!


: