views:

159

answers:

1

I m using Netbeans IDE, I need to get the icon from the title bar of the JFrame and set it in the JButton. Is there any way to get the Icon image from the JFrame, there is no getIconImage() method i tried getIconImages() but it doesnt works.

+3  A: 

Frame (the superclass of JFrame) has Frame.getIconImage. You should be able to use that.

Ash