draw Plus - Java 2D Graphics

Java examples for 2D Graphics:Graphics

Description

draw Plus

Demo Code


//package com.java2s;
import java.awt.Graphics;

public class Main {
    public static void drawPlus(Graphics g, int x, int y, int size) {
        g.drawLine(x, y - size, x, y + size);
        g.drawLine(x + size, y, x - size, y);
    }/*  ww  w .  ja v  a2s . c  o  m*/
}

Related Tutorials