Connecting Tech Pros Worldwide Help | Site Map

Java Games Please Help!

  #1  
Old October 6th, 2008, 06:36 AM
Newbie
 
Join Date: Oct 2008
Posts: 2
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!
  #2  
Old October 6th, 2008, 07:55 AM
myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 168

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

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...
  #4  
Old October 6th, 2008, 08:18 AM
Lives Here
 
Join Date: Sep 2006
Posts: 12,085

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i get started with java programming? Xbull answers 9 December 4th, 2006 12:57 AM
Starting University COSC and learning JAVA, advice please :D David Van D answers 1 February 4th, 2006 02:45 AM
Scope confusion -- compilation issue -- please help me understand Bill answers 12 November 16th, 2005 05:53 AM
Object test = new Object() <-- Java, best way in C++ DrUg13 answers 11 July 22nd, 2005 07:06 AM