Another problem is the path to the image:

new ImageIcon("res\background.jpg")
The "\b" is a special character, not the two characters \ and b.
Either escape the \ with another \ to make...