Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Button
#1
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?
#2
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.
My Blog | My Setup | My Videos | Have a wonderful day.
#3
I want to use my own picture, and I was going to fix my other post. Sorry!
#4
I need help soon! I want my own customized button. Pleas help!


Forum Jump:


Users browsing this thread: 1 Guest(s)