Java BasicStroke “Fuzzy”
问题 I'm trying to write a simple paint applet with Java, but I'm having trouble with BasicStroke . Initially, my plan was to try to somehow draw a line with a width, but the API apparently doesn't support that. I tried using BasicStroke , but the result is just a fuzzy mess. How can I fix this fuzz problem? private void mousedrag_hook(Point point) { if(start == null) start = point; end = point; Graphics2D g2d = (Graphics2D)applInstance.buffer_g; g2d.setStroke(new BasicStroke(7)); //g2d.fillOval