Hello,
I am writing a chat server application in eclipse ide how i wish to change the jar default image icon but all attempt end either in error or the line of code running with change the icon. here is where i put the code.
setIconImage(new ImageIcon(ClassLoader.getSystemResource("chatbutton.jpg")).getImage());
and here is the error i got.
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at ChatMain.main(ChatMain.java:29)