dibujar un rectangulo con las esquinas redondeadas java code example
Example: dibujar un rectangulo con las esquinas redondeadas 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);
g.fillRoundRect(0,0,200,100,10,10);