Can not draw image on JTextArea background when using Nimbus Look And Feel
I am drawing an image on JTextArea background, it is drawn using other look and feels (Metal, Windows etc) but when I use Nimbus Look And Feel it does not draw image What can be the possible problem and how to fix that? Here is the code I am using Image TextArea Class public class ImageTextArea extends JTextArea{ File image; public ImageTextArea(File image) { setOpaque(false); this.image=image; } @Override public void paintComponent(final Graphics g) { try { // Scale the image to fit by specifying width,height g.drawImage(new ImageIcon(image.getAbsolutePath()).getImage(),0,0,getWidth()