jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes Graphics2D: create a visible line, read on Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Graphics2D: create a visible line, read on" Watch "Graphics2D: create a visible line, read on" New topic
Author

Graphics2D: create a visible line, read on

Vinicius Souza
Ranch Hand

Joined: May 18, 2011
Posts: 66
    
    1

Hi Im creating an app where I need that a rectangle be visible all the time over the background. So I created this:

But in this example the rectangle is draw using white color. How can I do something like a xor that react with the background color to make this rectangle visible with any background?
Thanks in advance!


Java is the best (I love C too) heehhh
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4986
    
    8

setXORMode(...)


luck, db
There are no new questions, but there may be new answers.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Graphics2D: create a visible line, read on
 
It's not a secret anymore!