If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Creating a JButton

hi, im trying to create a jbutton where the button will allow the user to redo the program again. this program is to roll two dice and have the sum added up and list the frequencies of the sum of 2-12 poppoing out in 36000 rolls. i have gotten the program itself completed... but i do not know how to implement a jbutton.. can someone help? below is my original code, thanks.

ugh.. i do prefer a separate ActionEvent handler for each button, rather than a massive set of IFs to find out which button was pressed (i know that drain;s example is not thus, but.. left you the OP's imagination, it might well be)

for the OP: try using NetBeans to make your gui.. it generates a lot of the tedious stuff for you..