Description
Graphics.drawLine method works incorretly with in XORMode
Simple reproducer:
import java.io.*;
import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
public class DrawLineTest extends JFrame {
public static void main(String[] args){
final DrawLineTest test = new DrawLineTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
test.setSize(200, 200);
test.add(new Panel(){
public void paint(Graphics g)
});
test.setVisible(true);
}
}