Here you can find the source of drawRect(Rectangle r, Graphics2D g)
Parameter | Description |
---|---|
r | Rectangle |
g | Graphics2D |
public static void drawRect(Rectangle r, Graphics2D g)
//package com.java2s; //License from project: Open Source License import java.awt.Graphics2D; import java.awt.Rectangle; public class Main { /**//w w w . j av a 2 s .co m * DrawRect * * @param r Rectangle * @param g Graphics2D * @see Graphics2D#drawRect(int, int, int, int) */ public static void drawRect(Rectangle r, Graphics2D g) { g.drawRect(r.x, r.y, r.width, r.height); } }