Hello all. I am fairly new to Java. I have been trying to learn game programming. I have literally tried dozens of tutorials and I keep running into the same problem, images of any kind will not work. I am using Eclipse with an Android Plugin. In Android projects I am able to display images with no problems. In all Java Projects I have tried it never works. Is it possible the Android Plugin is causing the problems?

Here is an example:
Board.java
Java Code:
package me.imgtest;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class Board extends JPanel {
	
	Image myImage;
	
	public Board() {
		ImageIcon ii = new ImageIcon(this.getClass().getResource("ishihara.jpg"));
		myImage = ii.getImage();
	}
	
	public void paint(Graphics g) {
		Graphics2D g2d = (Graphics2D) g;
		g2d.drawImage(myImage, 10, 10, null);
	}

}
used with Image.java:
Java Code:
package me.imgtest;

import javax.swing.JFrame;

public class Image extends JFrame{
	
	public Image() {
		add(new Board());
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(500, 500);
		setLocationRelativeTo(null);
		setTitle("Go Java Go!");
		setVisible(true);
	}
	
	public static void main(String[] args) {
		new Image();
	}

}
This code results in the following error:
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at me.imgtest.Board.<init>(Board.java:14)
at me.imgtest.Image.<init>(Image.java:8)
at me.imgtest.Image.main(Image.java:18)

I get this type of error a lot. I have also tried using Applets and often get an applet with a blank white screen. I am always able to draw using drawRect etc... but images never work.

Any ideas?