Where is your image saved? It is possible the path to your image is not correct:
ImageIcon img = new ImageIcon("stop.jpg");
You should use a path that is based on your class. Here for example the image is stored in the package images.
new ImageIcon(MyClass.class.getResource("/images/image.png"));