HI, im getting a error for this line. wt is the problem?
BufferedImage image = ImageIO.read(this.getClass().getResource("fruits.j pg"));.
Printable View
HI, im getting a error for this line. wt is the problem?
BufferedImage image = ImageIO.read(this.getClass().getResource("fruits.j pg"));.
Are you in an instance of whatever class this code is in, and not a static method?