This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 45

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

setXORMode(...)


luck, db
There are no new questions, but there may be new answers.
 
GeeCON Prague 2014
 
subject: Graphics2D: create a visible line, read on