05-10-2013, 02:52 PM
Well it all depends what type of button you want to use. Do you want to make your own out of an image? Do you want to use a rectangle? Or do you want to actually use a Swing button?
Generally, you create the button as a private instance variable. Then, during the init() or constructor of your class, you have the button initialize itself. Then in the draw method you simply draw the button. I can provide you with more details as soon as you answer the question above.
Generally, you create the button as a private instance variable. Then, during the init() or constructor of your class, you have the button initialize itself. Then in the draw method you simply draw the button. I can provide you with more details as soon as you answer the question above.