Connecting Tech Pros Worldwide Forums | Help | Site Map

Java Games Please Help!

Newbie
 
Join Date: Oct 2008
Posts: 2
#1: Oct 6 '08
Hello!
I am creating a simple game in java that will arrange the button(with letters) to form a word.I already create the GUI but i do not know how to move the buttons.
Please help me.Thank you!

myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 168
#2: Oct 6 '08

re: Java Games Please Help!


Quote:

Originally Posted by jolitte

Hello!
I am creating a simple game in java that will arrange the button(with letters) to form a word.I already create the GUI but i do not know how to move the buttons.
Please help me.Thank you!

The setBounds method moves a button to any position that you specify with a Rectangle object as a parameter to the method

Regards,

Alex.
Newbie
 
Join Date: Oct 2008
Posts: 2
#3: Oct 6 '08

re: Java Games Please Help!


thank you so much sir alex.
what if i want to swap the buttons?please help me with the coding...
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#4: Oct 6 '08

re: Java Games Please Help!


Quote:

Originally Posted by jolitte

thank you so much sir alex.
what if i want to swap the buttons?please help me with the coding...

You can easily end up chasing your tail here.
I wouldn't recommend creating the interface before getting the program logic laid out correctly first.
myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 168
#5: Oct 6 '08

re: Java Games Please Help!


Quote:

Originally Posted by jolitte

thank you so much sir alex.
what if i want to swap the buttons?please help me with the coding...

All the help you will need with the coding is here then you will be able to move buttons, swap them, hide them et all. Good luck.

Regards,

Alex.
Reply