Java Draw Point drawPoint(Graphics g, int x, int y)

Here you can find the source of drawPoint(Graphics g, int x, int y)

Description

Draws the point (x, y) in the current color.

License

Open Source License

Declaration

static void drawPoint(Graphics g, int x, int y) 

Method Source Code

//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);
    }
}

Related

  1. drawPoint(final java.awt.Graphics g, final int x, final int y)