This program allows you to mix up an animal picture. For example, if "Horns" was picked, the picture would change like this:
afdasfasafd
afdas fdf
Create a folder to hold all of this project.
1. This game requires a fair bit of work in paint before you begin. In paint, make pictures to be cut up on the screen. You will need at least 3 of each section of the animal.
Some important points for working in paint:
Some Examples:
2. Set up the user interface.
You will need panels as labelled below.
3. Make the three pieces of the picture global (I called mine head, eyes and mouth in the above picture). In actionPerformed, you will change them something like this:
if (e.getActionCommand ().equals ("beak"))
mouth.setIcon (createImageIcon ("beak.gif"));