Adding a photo to my java game -


i can't add photo java game have used lots of ways none work 1 told use:

import java.awt.image;  import javax.swing.imageicon;  public class backgrownd {      static imageicon background = new imageicon(backgrownd.class.getresource("/page/src/me/masonhall/page/res/background.png"));      public static image getbk(){         return background.getimage();      } } 

so can 1 me please!!!

i answer questions me.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -