Set Image on JLabel
import java.awt.event.*;
import javax.swing.*;
public class ImageButton extends JFrame
{
JFrame f;
ImageButton()
{
JButton b=new JButton(new ImageIcon("E:\wallpaper\Nature\img1.jpg"));
b.setBounds(0,0,1300,800);
add(b);
setSize(1300,800);
setLayout(null);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String args[])
{
new ImageButton();
}
}