changing swing frame icon

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anurag275125
    New Member
    • Aug 2009
    • 79

    changing swing frame icon

    Hello..
    can anyone please tell me how to change the swing frame icon that appears on the left corner in the title bar of the frame(default is java icon). which method should I use??

    ***thanks in advance****
  • pbrockway2
    Recognized Expert New Member
    • Nov 2007
    • 151

    #2
    setIconImage(). Frame, Window and JFrame all have such a method.

    Window also has setIconImages(L ist) which lets the OS decide on the most appropriate image to use.

    Comment

    Working...