Setting an icon in the title bar of a JFrame...

Hi,

how do I set an image (icon) in the title bar of aJFrame (in the top left corner)?

InJInternalFrame there is a method

publicvoid setFrameIcon(Icon icon)

to set an image in the title bar of this internal frame - but in aJFrame I didn't find any method like this...

Thanks in advance

- Stephan

[430 byte] By [Jacklera] at [2007-11-27 10:20:32]
# 1

frame.setIconImage( .. .)

ICE

icewalker2ga at 2007-7-28 17:04:10 > top of Java-index,Desktop,Core GUI APIs...
# 2

Thanks ICE, that works for me...

this.setIconImage(new ImageIcon("img\\foo.jpg").getImage());

- Stephan

Jacklera at 2007-7-28 17:04:10 > top of Java-index,Desktop,Core GUI APIs...