Hi Olivier, It is because arcWidth and arcHeight are too small to honor the stroke width on the inside.
Please run example below to see what I mean: [code] import java.awt.BasicStroke; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.SwingUtilities; public class ThickStroke { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new ThickStroke().createGUI(); } }); } public void createGUI() { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new JPanel() { private static final long serialVersionUID = 1L; @Override protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setStroke(new BasicStroke(50f)); g2.drawRoundRect(30, 30, 200, 200, 90, 90); g2.drawRoundRect(330, 30, 200, 200, 10, 10); } }); frame.setSize(600, 400); frame.setLocationRelativeTo(null); frame.setVisible(true); } } [/code] Piet [Message sent by forum member 'pietblok' (pietblok)] http://forums.java.net/jive/thread.jspa?messageID=341949 =========================================================================== To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".