05-10-2013, 06:22 AM
I've got the window and the back buffer setup, but how do I make the buttons, where do I put it in the class which class do I put it in, and how do I set the location?
Button
|
05-10-2013, 06:22 AM
I've got the window and the back buffer setup, but how do I make the buttons, where do I put it in the class which class do I put it in, and how do I set the location?
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.
05-11-2013, 08:29 AM
I want to use my own picture, and I was going to fix my other post. Sorry!
05-13-2013, 01:08 PM
I need help soon! I want my own customized button. Pleas help!
|
« Next Oldest | Next Newest »
|