0

go0d day every0ne..

..Can you please help me create a 'Picture Puzzle' using GUI..
its just like playing a picture puzzle like we d0,
it just like this..
it has a pieces of scrambled pictures that you will arrange it.. it has a 0ne empty block to be able for you to move the puzzle..

..thankz.
..God Bless you.
^_^

3
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by johnbryle
0

..hard f0r me to do that..
/n0obz me.

/can u please give me some idea?..

1

That is the same question you asked in one of your previous threads:
http://www.daniweb.com/forums/thread305019.html

You got answers to that thread. If you didn't like the answers don't start a new thread.

In that thread we asked what a "picture puzzle" was and got no answers. Instead you created a new thread with the answer of our question. It is like you ignored our attempts to help you.

As for an idea.
Use JLabels or JButtons that display different images and have one button with a blank image. Once a button is clicked, check if it has an empty space next to it (the button with no image). If yes, swap the buttons images.

Check the JButton class API to see how to add images to a button.
Also read some tutorials about swing, on how to write ActionListeners.

0

sorry about the previous one//

//hope you don't mind me asking.. if where can i read some tutorial in that case?..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.