/** * Method to force the picture to repaint itself. This is very useful after you have changed the * pixels in a picture and you want to see the change. */ public void repaint() { // if there is a picture frame tell it to repaint if (pictureFrame != null) pictureFrame.repaint(); // else create a new picture frame else pictureFrame = new PictureFrame(this); }