I have got an Java Agent and I'm trying to use an ImageResource in the "JTreeCellRendererOpen" class from the "res" folder to show as image icon.
ImageIcon icon = new ImageIcon(this.getClass().getResource("/res/ntf.gif"));
super.setIcon(icon);
I try the different examples in the following NullPointerException when trying to use image resource but I always get an NullPointerException.
Does somebody know how to access the given resource?