Java examples for 2D Graphics:Graphics
draw Plus
//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*/ }