Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old October 6th, 2008, 06: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, 07:55 AM
myusernotyours's Avatar
Member
 
Join Date: Nov 2007
Posts: 114
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, 08: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, 08:18 AM
Administrator
 
Join Date: Sep 2006
Posts: 11,441
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, 01:18 PM
myusernotyours's Avatar
Member
 
Join Date: Nov 2007
Posts: 114
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 205,248 network members.