JDialog - how to change icon

前端 未结 1 760
南旧
南旧 2021-01-14 15:08

I want to change icon of the JDialog (to replace standard java cup) I am able to do that this way:

ImageIcon img = new ImageIcon(OuterClass.class.getResource         


        
相关标签:
1条回答
  • 2021-01-14 15:25

    The ImageIcon API states that the supported types are JPEG & GIF. Not too sure of a workaround for that.

    0 讨论(0)
提交回复
热议问题