Here you can find the source of drawStage(Graphics g, int x, int y)
public static void drawStage(Graphics g, int x, int y)
//package com.java2s; /***//ww w . j av a 2 s . co m * Copyright (C) 2010 Johan Henriksson * This code is under the Endrov / BSD license. See www.endrov.net * for the full text and how to cite. */ import java.awt.Color; import java.awt.Graphics; public class Main { /** * Draw stage with sample */ public static void drawStage(Graphics g, int x, int y) { int dy = 6; int[] xPoints = new int[] { x - 20, x + 20, x + 25, x - 25 }; int[] yPoints = new int[] { y - dy, y - dy, y + dy, y + dy }; g.setColor(Color.GRAY); g.fillPolygon(xPoints, yPoints, 4); g.setColor(Color.BLACK); g.drawPolygon(xPoints, yPoints, 4); } }