Forum Stats

  • 3,728,033 Users
  • 2,245,522 Discussions
  • 7,853,253 Comments

Discussions

Java Default Icon

843805
843805 Member Posts: 49,999
edited April 2006 in Swing
Hello, How can I disable the Java Default Icon Image on the my JFrame?

Comments

  • 794342
    794342 Member Posts: 6,422
    import java.awt.*;
    import javax.swing.*;
    class Testing extends JFrame
    {
      public Testing()
      {
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(200,100);
        setIconImage(new ImageIcon("").getImage());
      }
      public static void main(String args[]){new Testing().setVisible(true);}
    }
This discussion has been closed.