• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is up with BufferedImage?

 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic