@@ -0,0 +1,1272 @@
+import java.awt.*;%0Aimport java.awt.event.*;%0Aimport java.applet.*;%0A%0A%0A/*%0A%3Capplet code=%22XOR%22 width=400 height=200%3E%0A%3C/applet%3E%0A*/%0A%0A%0Apublic class XOR extends Applet %7B%0A    int chsX = 100, chsY = 100;%0A%0A    public XOR() %7B%0A        addMouseMotionListener(new MouseMotionAdapter() %7B%0A            public void mouseMoved(MouseEvent me) %7B%0A                int x = me.getX();%0A                int y = me.getY();%0A                chsX = x - 10;%0A                chsY = y - 10;%0A                repaint();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    public void paint(Graphics gc) %7B%0A        gc.drawLine(0, 0, 100, 100);%0A        gc.drawLine(0, 100, 100, 0);%0A        gc.setColor(Color.blue);%0A        gc.drawLine(40, 25, 250, 180);%0A        gc.drawLine(75, 90, 400, 400);%0A        gc.setColor(Color.green);%0A        gc.drawRect(10, 10, 60, 50);%0A        gc.fillRect(100, 10, 60, 50);%0A        gc.setColor(Color.red);%0A        gc.drawRoundRect(190, 10, 60, 50, 15, 15);%0A        gc.fillRoundRect(70, 90, 140, 100, 30, 40);%0A        gc.setColor(Color.cyan);%0A        gc.drawLine(20, 150, 400, 40);%0A        gc.drawLine(5, 290, 80, 19);%0A%0A        gc.setXORMode(Color.black);%0A        gc.drawLine(chsX - 10, chsY, chsX + 10, chsY);%0A        gc.drawLine(chsX, chsY - 10, chsX, chsY + 10);%0A        gc.setPaintMode();%0A    %7D%0A%7D%0A

add info about setting the paint mode in Graphics