Here you can find the source of drawPoint(Graphics g, int x, int y)
static void drawPoint(Graphics g, int x, int y)
//package com.java2s; /*/*from ww w .j av a 2 s . co m*/ * %W% %E% * * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.awt.Graphics; public class Main { /** * Draws the point (<b>x</b>, <b>y</b>) in the current color. */ static void drawPoint(Graphics g, int x, int y) { g.drawLine(x, y, x, y); } }