java - DataBufferInt cannot be resolved to a type -


i'm using eclipse java , i'm newbie programmer, lately i've been using different online resources try make own simple game. have run issue databufferint cannot resolved type.

public main()  {     screen = new screen(width, height);     img = new bufferedimage(width, height, bufferedimage.type_int_rgb);     pixels = ((databufferint) img.getraster().getdatabuffer()).getdata(); } 

((databufferint) img.getraster().getdatabuffer()) error happening.

i have tried restarting, , deleting , re-adding jre library.

are importing java.awt.image.databufferint?

check whether have

import java.awt.image.databufferint; 

or

import java.awt.image.*; 

at top of main.java file (above public main() {)


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -