public Main(SingleFrameApplication app)
{
initComponents();
}
just add the next code after calling initComponents
java.awt.Image im = java.awt.Toolkit.getDefaultToolkit().getImage(getClass().getResource("/com/.../feed-icon.png"));
getFrame().setIconImage(im);
(Of course correct the path to the file inside the package.)
Now your application should display the icon in the top of the window (only tested in Microsoft Windows)
No comments:
Post a Comment