Java, getting an image inside the jar in a static method
<p>For the program I'm writing, I need an image to use as an image icon. 
Every different way I've found to try and do this comes up with some sort of error.
If I need to post my code as well, let me know. But I don't think I need to</p>

<p>I was told to add code, so here is my main class.</p>

<pre><code>    import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.BufferStrategy;
import java.io.InputStream;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;


public class Main extends Canvas implements Runnable{

    private static final long serialVersionUID = 1L;

    public static int Width=650;
    public static int Height=600;
    public boolean Running=false;
    public Thread thread;
    public Ball ball = new Ball();
    public static Padel padel = new Padel();
    public int ballWidth=20;
    private int LeftScore=0;
    private int RightScore=0;
    private int ServeLength;
    private static long GameStartTime;
    private long TimePlayedMinutes;
    private long TimePlayedSecs;
    private long TimePlayedMilis;
    private int SecondsToMinute;
    public int Level;
    public int ThreadSleep;
    public static void main(String[] args){
        Main game = new Main();
        JFrame frame = new JFrame();
        frame.setSize(Width+10, Height+10);
        frame.setTitle("Pong By Poo");
        frame.setIconImage(image);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setResizable(false);
        frame.setVisible(true);
        frame.setLocationRelativeTo(null);
        frame.add(game);
        frame.addKeyListener(padel);
        GameStartTime=System.currentTimeMillis();
        game.start();
        }   
</code></pre>

<p>I probably shouldn't have posted the whole thing, but oh well.
I need to set the image Icon (in the first, main method) Which is an image which is found in a folder called resources inside the jar. The images name is Test.png</p>
