why the image path showing wrong? import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import java.awt.Color; import java.awt.Font; import java.awt.event.*; import java.io.*; import java.awt.*; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import javax.imageio.ImageIO; import java.awt.Color; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; class Form1 implements ActionListener { String user, pass; JTextField userText, nameText; JPasswordField passText; JLabel userLabel, passLabel, imageLabel; private JButton login, button; ImageIcon icon; BufferedImage bufferedImage; Image image, iconImage; ImageIcon image1; JFrame frame1 = new JFrame(); JPanel panel; Form1(){ //------------------frame backgroubd-------------------- panel = new JPanel() { protected void paintComponent(Graphics g) { super.paintComponent(g); GradientPaint gp = new GradientPaint(0, 0, Color.blue, 0, getHeight(), Color.black); Graphics2D g2d = (Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER _QUALITY); g2d.setPaint(gp); g2d.fillRect(0, 0, getWidth(), getHeight()); } }; panel.setLayout(null); frame1.setSize(450, 500); frame1.getContentPane().setBackground(new Color(214, 219, 223)); frame1.setLayout(null); panel.setBounds(0,0,450,500); frame1.add(panel); //------------------user-------------------- userLabel = new JLabel("Username"); userLabel.setForeground(Color.WHITE); userLabel.setFont(new Font("Calibri", Font.BOLD, 16)); userLabel.setBounds(50, 250, 100, 30); panel.add(userLabel); userText = new JTextField(); userText.setBounds(150, 250, 150, 30); panel.add(userText); //------------------passLabel-------------------- passLabel= new JLabel("Password"); passLabel.setForeground(Color.WHITE); passLabel.setFont(new Font("Calibri", Font.BOLD, 16)); passLabel.setBounds(50, 300, 100, 30); panel.add(passLabel); passText = new JPasswordField(); passText.setEchoChar('*'); passText.setBounds(150, 300, 150, 30); panel.add(passText); //------------------button-------------------- button = new JButton("Button"); button.setBounds(150, 200, 150, 30); button.setFont(new Font("Calibri", Font.BOLD, 16)); button.setBorder(BorderFactory.createRaisedBevelBorder()); button.setBackground(Color.white); panel.add(button); try { iconImage = ImageIO.read(new File("")); image1 = new ImageIcon(iconImage); imageLabel = new JLabel("", image1, JLabel.CENTER); imageLabel.setBounds(100, 20, 200, 150); panel.add(imageLabel); } catch (IOException e) { e.printStackTrace(); } //------------------login button-------------------- login = new JButton("Login"); login.setBounds(50, 370, 70, 30); login.setFont(new Font("Calibri", Font.PLAIN, 16)); login.setBorder(BorderFactory.createRaisedBevelBorder()); login.setBackground(Color.white); panel.add(login); login.addActionListener(this); //------------------Frame 1-------------------- frame1.setVisible.