Here is my Code in java that i have written. A screen shot of my Laptop is attached which is showing output in which java icon is still there on (left corner).
import javax.swing.*;![enter image description here][1]
import java.awt.*;
public class Frame
{
public static void createWindow()
{
JFrame frame = new JFrame("Warning");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel textLabel = new JLabel ("Congratulation!! Installation Complete.", SwingConstants.CENTER);
textLabel.setPreferredSize(new Dimension(420,140));
frame.getContentPane().add(textLabel, BorderLayout.CENTER);
ImageIcon img = new ImageIcon("D:\\Icons\\icon.ico");
frame.setIconImage(img.getImage());
frame.pack();
frame.setVisible(true);
frame.setLocationRelativeTo(null);
}
public static void main (String[] args)
{
createWindow();
}
}