How do I set the main icon for the default Java Help Viewer?

Sandip Chitale

Use the following method of javax.help.plaf.HelpNavigatorUI


public void setIcon(javax.swing.Icon icon)
    Sets the icon for this HelpNavigator.

You can also traverse the parent heirarchy of JHelpNavigator till you find a instance of java.awt.Frame. Once you have it you can call -


public void setIconImage(Image image)
    Sets the image to displayed in the minimized icon for this frame.
    Not all platforms support the concept of minimizing a window.
Parameters:
    image - the icon image to be displayed. 
            If this parameter is null then the icon image is set 
            to the default image, which may vary with platform.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact