how to change the image in title bar for JFrames

plz give me a small code to change the image of the JFrame in the Title bar.

i know how to change the name of the title bar .

import javax.swing.*;

class Rathna1 extends JFrame

{

Rathna1()

{

super("rathna project ");

}

}

public class Rathna

{

public static void main(String ax[])throws Exception

{

Rathna1 r=new Rathna1();

r.setVisible(true);

r.setSize(400,400);

}

}

Like this how to change the image of the title bar

Message was edited by:

therathna

[591 byte] By [therathnaa] at [2007-11-26 18:52:27]
# 1
Read the tutorial: http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html#setDefaultLookAndFeelDecoratedAnd use the code tag when posting code.
Rodney_McKaya at 2007-7-9 6:26:29 > top of Java-index,Desktop,Core GUI APIs...
# 2
thank u so much...
therathnaa at 2007-7-9 6:26:29 > top of Java-index,Desktop,Core GUI APIs...
# 3
..
therathnaa at 2007-7-9 6:26:29 > top of Java-index,Desktop,Core GUI APIs...
# 4
hi, JFrame frame;frame.setVisible(true); frame.setIconImage(new ImageIcon("icons/img007.gif").getImage());frame.setSize(800,600);i think the thing u r searching is :frame.setIconImage(new ImageIcon("icons/img007.gif").getImage());~~~radha
radhadevi19840320a at 2007-7-9 6:26:29 > top of Java-index,Desktop,Core GUI APIs...