« Return to Thread: Change Application Icon in Desktop Application

Change Application Icon in Desktop Application

by giorgiolaner :: Rate this Message:

Reply to Author | View in Thread

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


Nuova grafica e nuove funzionalità! Crea subito Gratis la tua nuova Casella di Posta Katamail

 « Return to Thread: Change Application Icon in Desktop Application