In This Chapter
Displaying images in Swing components
Drawing images directly on a panel
Using a file chooser to pick an image
Adding annoying sound effects and music to your programs
So far in this book, all the Swing applications have been pretty boring. They've had plenty of labels, text fields, combo boxes, and the like, but no pictures!
This chapter remedies that situation. You find out how to incorporate graphic images (that is, pictures — not necessarily images of a graphic nature) into your Swing applications. Just to make things interesting, I show you how to throw in sound effects and music, too.