}
public static void main(String arg[])
{new FillJPanel().show();}
}
class NewPanel extends JPanel
{
public NewPanel(){}
public void paintComponent(Graphics g)
{
int x=0,y=0;
java.net.URL imgURL = getClass().getResource("images\\photo.gif");
ImageIcon icon = new ImageIcon(imgURL);