No problem. If your problem has been solved, please mark this thread as Solved.
Type: Posts; User: Mr.777
No problem. If your problem has been solved, please mark this thread as Solved.
You know how to write click event for JButton, right? Asuming this, you can do whatever you want to do.
On click open the dialog.
There are two of the many possible strategies:
1. Rename your images with 0,1,2,3.....
Generate a random number, open the image against the random number while appening .jpg,.png etc
2. Create...
Welcome to Java Programming Forums.
What have you tried so far? And from where do you want to pick random image?