9 May 09:19
Change Application Icon in Desktop Application
From: <giorgiolaner <at> katamail.com>
Subject: Change Application Icon in Desktop Application
Newsgroups: gmane.comp.java.ide.netbeans.user
Date: 2008-05-09 07:22:34 GMT
Subject: Change Application Icon in Desktop Application
Newsgroups: gmane.comp.java.ide.netbeans.user
Date: 2008-05-09 07:22:34 GMT
Hi everyone,
I'm relatively new to netbeans, I just want to change the Java "coffee" icon from my application with another icon...
I tried the following code from my FrameView:
JFrame mainFrame = GeoJaxConfiguratorApp.getApplication().getMainFrame();
ImageIcon imageIcon = new ImageIcon("C:\\iconCheckAll.gif");
mainFrame.setIconImage(image.getImage());
But it doesn't work... what is the problem?
Regards,
Giorgio
RSS Feed