Here you can find the source of drawShadowedString(Graphics2D g2d, String label, Color textColor, Color shadowColor, int x, int y)
public static void drawShadowedString(Graphics2D g2d, String label, Color textColor, Color shadowColor, int x, int y)
//package com.java2s; //License from project: Apache License import java.awt.*; public class Main { public static void drawShadowedString(Graphics2D g2d, String label, Color textColor, Color shadowColor, int x, int y) { g2d.setColor(shadowColor);//from w ww . j av a 2s. c om g2d.drawString(label, x + 0.8f, y + 0.8f); g2d.setColor(textColor); g2d.drawString(label, x, y); } }