Connecting Tech Pros Worldwide Help | Site Map

Java Games Please Help!

 
LinkBack Thread Tools Search this Thread
  #1  
Old October 6th, 2008, 05:36 AM
Newbie
 
Join Date: Oct 2008
Posts: 2
Default Java Games Please Help!

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!
Reply
  #2  
Old October 6th, 2008, 06:55 AM
myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 135
Default

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.
Reply
  #3  
Old October 6th, 2008, 07:10 AM
Newbie
 
Join Date: Oct 2008
Posts: 2
Default

thank you so much sir alex.
what if i want to swap the buttons?please help me with the coding...
Reply
  #4  
Old October 6th, 2008, 07:18 AM
Administrator
 
Join Date: Sep 2006
Posts: 11,941
Default

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.
Reply
  #5  
Old October 6th, 2008, 12:18 PM
myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 135
Default

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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.