Hey
java ppl
i have a problem.
Plz read the code
public void paint(Graphics g)
{
setBackground(Color.white);
g.setColor(Color.blue); //(Line 1)
g.fillRect(50,10,50,50);
g.setColor(Color.red); //(line 2)
g.fillRect(110,60,50,50);
g.setXORMode(Color.black);
g.fillRect(75,35,50,50);
}
I understand that result of overlapping color. done here(line 2) by drawing some thing(rect in this case) in XOR mode can be predicted(i.e will be color given to setXORMode(Color c) method.
Can it be possible to predict what will happen when some thing drawn in XOR mode overlaps some thing drawn in previous paint mode like at (Line 1).if yes how??
Regards Denish