How to draw a Round rectangle in java with normal rectangle outline?

For my java application i need a Round rectangle with an outline that looks like a normal rectangle, like this I ...

How to draw inner stroke with Java2D?

I just want to draw the circle which is exactly 15x15 pixels sized, and have fill and outline. I'm using Java2D. The...

How to draw a directed arrow line in Java??

I want to draw a directed arrow line through Java. At present, I am using java.awt.Line2D.Double class to draw a li...