Learn Java Tutorial 1.34- ActionListener and JOptionPane
In this Java tutorial we will learn how to add an action to a button. To do this, we need to add an actionlistener to the button. Once we add the action listener, we at the method to actionlistener that we want to perform. Within that method is where we will then create a new window (or an OptionPane) to appear.<br /><br />Source code | Additional Info for this tutorial: http://bit.ly/11jz53W<br />Hit us up on G+, facebook, or twitter!<br /><br />Follow us!<br />-------------<br />Google +: http://bit.ly/1b6FeRV<br />Facebook: http://on.fb.me/11sX40j<br />Twitter: http://bit.ly/ZuuI4Y<br />-------------<br />Jake's G+ = http://bit.ly/14yuNTD<br />Travis's G+ = http://bit.ly/11iPctT<br /><br />------------<br /><br />Donate: http://bit.ly/110go1C