Here you can find the source of drawCross(Graphics2D g2d, int x, int y, int size)
public static void drawCross(Graphics2D g2d, int x, int y, int size)
//package com.java2s; //License from project: Open Source License import java.awt.*; public class Main { public static void drawCross(Graphics2D g2d, int x, int y, int size) { g2d.drawLine(x, y, x + size, y + size); g2d.drawLine(x, y + size, x + size, y); }/* w w w . ja v a 2 s.co m*/ }