This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Grey background in screen capture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Grey background in screen capture" Watch "Grey background in screen capture" New topic

Grey background in screen capture

Mikko Kohtamäki
Ranch Hand

Joined: Dec 13, 2008
Posts: 112

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

Joined: Dec 13, 2008
Posts: 112
Ok, I was a bit too hasty.

I worked two lines:

At this point it captures the background just fine
I agree. Here's the link:
subject: Grey background in screen capture
jQuery in Action, 3rd edition