I am trying to use this image:
private ImageIcon OptionsIcon = new ImageIcon("f:");
but I already have this image working:
private ImageIcon GameIcon = new ImageIcon("f:/School Programmation/Dungeons of Darkness.gif");

public RPG14()
{
setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20));
add(keyboardPanel);

keyboardPanel.setFocusable(true);


add(new JLabel(GameIcon));
repaint();
}

its keyboard Panel:
public KeyboardPanel()
{
addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {

switch (e.getKeyCode())
{
case KeyEvent.VK_M: MainMenu = 1; break;
case KeyEvent.VK_Q: QuitGame = 1; break;
case KeyEvent.VK_C: Credits = 1; break;
case KeyEvent.VK_N: NewGame = 1; break;
case KeyEvent.VK_O: Options = 1; break;

default: keyChar = e.getKeyChar();
}

repaint();
}

I want to use the key event C and the key event O to display another image than the one provided by the GameIcon But i did not succeed into doing it. please help.