Here you can find the source of drawAutoCompleteMarker(Graphics2D g2, int x, int y, int iconSize)
protected static void drawAutoCompleteMarker(Graphics2D g2, int x, int y, int iconSize)
//package com.java2s; //License from project: Apache License import java.awt.*; import java.awt.geom.Rectangle2D; public class Main { protected static void drawAutoCompleteMarker(Graphics2D g2, int x, int y, int iconSize) { int spacing = 2; Rectangle2D marker = new Rectangle2D.Double(); marker.setFrame(x + spacing - iconSize, y + spacing - iconSize, 2 * (iconSize - spacing), 2 * (iconSize - spacing)); g2.setPaint(Color.BLACK); g2.fill(marker);/* w w w. j a v a 2 s . c o m*/ } }