dont know the why this modified JTextField did not show up..help me out
import java.awt.*;
import javax.swing.*;
public class JBgtextfield extends JTextArea{
public void paint(Graphics g)
{
setOpaque(false);
ImageIcon ic=new ImageIcon("image1.png");
Image i=ic.getImage();
g.drawImage(i,0,0,this);
super.paint(g);
}
}
i then created an instance of this class and added it to a panel in init() method. but it didnt show up?