dibujar un cuadrado con las esquinas redodndeadas java code example

Example: dibujar un cuadrado con las esquinas redodndeadas java

/*
public abstract void drawRoundRect(int x,
                 int y,
                 int width,
                 int height,
                 int arcWidth,
                 int arcHeight);
x - the x coordinate of the rectangle to be drawn.
y - the y coordinate of the rectangle to be drawn.
width - the width of the rectangle to be drawn.
height - the height of the rectangle to be drawn.
arcWidth - the horizontal diameter of the arc at the four corners.
arcHeight - the vertical diameter of the arc at the four corners.
*/
//Codigo de ejemplo:
Graphics g;
g.drawRoundRect(0,0,200,100,10,10);

Tags:

Java Example