aspose file tools*
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: 58

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: 4658
    
    5

setXORMode(...)


luck, db
There are no new questions, but there may be new answers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Graphics2D: create a visible line, read on