Here you can find the source of makeDisabledImage(ImageIcon in)
public static ImageIcon makeDisabledImage(ImageIcon in)
//package com.java2s; //License from project: Apache License import java.awt.*; import javax.swing.*; public class Main { public static ImageIcon makeDisabledImage(ImageIcon in) { if (in == null) return (null); Image greyImage = makeGrayImage(in.getImage()); return (new ImageIcon(greyImage)); }//from w w w . j a va 2s . co m public static Image makeGrayImage(Image in) { return (GrayFilter.createDisabledImage(in)); // swing 05 // return(GrayFilter.createGrayImage(in)); // swing 04 } }