Sorry musste mein Gehirn erst anschalten. Haber dann codiert:
[code=java]
frmGizeh.setIconImage(window.createImage("C:\\Users\\Erik\\workspace\\GIzEH\\bin\\res\\GIzEH.ico"));
frmGizeh.getIconImage();
[/code]
Fehlermeldung:
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem:
The method setIconImage(Image) in the type JFrame is not applicable for the arguments (ImageIcon)
at GIzEH$1.run(GIzEH.java:26)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)