import java.awt.*;
import java.net.URL;
import javax.swing.*;

public class Icons
{
    public static Image whitePawn, whiteBishop, whiteKnight, whiteRook, whiteQueen, whiteKing,
                        blackPawn, blackBishop, blackKnight, blackRook, blackQueen, blackKing;

    private Icons(){}

    public static void loadIcons(JApplet applet)
    {
        URL base    = applet.getDocumentBase();
        whitePawn   = applet.getImage(base, "whitepawn.gif");
        whiteBishop = applet.getImage(base, "whitebishop.gif");
        whiteKnight = applet.getImage(base, "whiteknight.gif");
        whiteRook   = applet.getImage(base, "whiterook.gif");
        whiteQueen  = applet.getImage(base, "whitequeen.gif");
        whiteKing   = applet.getImage(base, "whiteking.gif");
        blackPawn   = applet.getImage(base, "blackpawn.gif");
        blackBishop = applet.getImage(base, "blackbishop.gif");
        blackKnight = applet.getImage(base, "blackknight.gif");
        blackRook   = applet.getImage(base, "blackrook.gif");
        blackQueen  = applet.getImage(base, "blackqueen.gif");
        blackKing   = applet.getImage(base, "blackking.gif");
    }
}

