if(isEnabled()) {
super.paintComponent(g);
return;
}
float[] my_kernel = {
0.10f, 0.10f, 0.10f,
0.10f, 0.20f, 0.10f,
0.10f, 0.10f, 0.10f };
ConvolveOp op = new ConvolveOp(new Kernel(3,3, my_kernel));
BufferedImage buf = new BufferedImage(getWidth(),getHeight(),
BufferedImage.TYPE_INT_RGB);
super.paintComponent(buf.getGraphics());
Image img = op.filter(buf,null);
g.drawImage(img,0,0,null);