• 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

Grey background in screen capture

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have extended JToolTip to make fade-in effect for it, well it works nice but when tooltip is painted partly outside of main JFrame it uses HeavyWeightWindow created in javax.swing.Popup. And for that I have to get screen capture from region where this tooltip component lies.

I dont know what it is but when I create screen capture from exactly region where tooltip component lies the image is grey, now if I move the regions y coordinate lets say +10 the captured image is correct but +10 away from correct position.

Or now I noticed that screen capture wont work behind the javax.swing.Popup$HeavyWeightWindow window. ??? WHY NOT ???
How to fix this problem ???

 
Mikko Kohtamäki
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I was a bit too hasty.

I worked two lines:



At this point it captures the background just fine
 
reply
    Bookmark Topic Watch Topic
  • New Topic