Here you can find the source of drawRequiredMarker(Graphics2D g2, int x, int y, int iconSize)
protected static void drawRequiredMarker(Graphics2D g2, int x, int y, int iconSize)
//package com.java2s; //License from project: Apache License import java.awt.*; public class Main { protected static void drawRequiredMarker(Graphics2D g2, int x, int y, int iconSize) { Font font = new Font("Serif", Font.BOLD, 2 * iconSize); g2.setFont(font);//from w w w . j av a 2s . c o m g2.drawString("!", x - iconSize + 2, y + iconSize - 2); } }