Originally Posted by
greyfox175
I have to put "extends JFrame
implements ActionListener" in right? But do I put it right after "public class DivisibleByTwo" or what? I'm just having trouble incorporating the gui stuff into the code I already have. Thanks
This means you should go back and read the tutorial I linked above - it might seem overwhelming but if you search you will find the components you need, and tutorials showing you how to use them. My advice: start from scratch and break your problem down - strip out the logic from your original code and turn it into a method which can be accessed regardless of whether you use the command line, a gui, whatever (this is a very important concept to learn). Then write your GUI - as I said break the problem down - first work on the layout, then work on the Actions, then work on linking those actions to the logic