• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is up with BufferedImage?  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok when i use the line..

BufferedImage view = robot.createScreenCapture(new Rectangle(800,600));

why wont the compiler recognize the class BufferedImage??

thanks,

Justin


p.s.

i have java.awt.image.BufferedImage; imported
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Justin,

You ought to know better than to post the same question to multiple forums...

Anyway, if you're sure you've got everything spelled right, check for a stray dot or missing semicolon right before "BufferedImage", or an extra close brace. If you're still stumped, you might post the whole contents of the file that won't compile.
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry bout that, I just know that the applet forum doesnt get replies that fast, but I also know that I could get griped at for putting it in the beginner forum to, just wanted fast answers

sorry,


Justin
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As BufferedImage is not from the java.lang package, you need to either import it from its package, or use the fully qualified class name.

Do you have an appropriate import statement in your source code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!