import javax.swing.*;
import java.awt.*;

    // Show the way in which a JLabel may be used to display an image.
class SwingImageFrame extends JFrame {
    public SwingImageFrame(){
        final int width = 195, height = 275;
        setSize(width,height);
        Container contents = getContentPane();

        // The two buttons that will manipulate the timer.
        final JLabel image = new JLabel(new ImageIcon("apple.gif"));

        contents.add(image,"Center");
        contents.add(new QuitJButton(),"South");
        pack();
    }
}
