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 wid
BasicStroke
Don't forget the RenderingHints:
@Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); ... }