Link to home
Start Free TrialLog in
Avatar of mentar
mentar

asked on

How to change the top left program icon in swing

Hello there,
I have a problem identifying the top left program icon in swing, that's the one that's on the program tool bar... there must be a way to override the default CoffeeCup icon somehow does anybody know?

Thanks,
Mentar
Avatar of mentar
mentar

ASKER

sorry I meant the title bar not the tool bar
When you create a new JFrame, you can pass it as a parametera a GraphicsConfiguration component, which will show up in the top left corner of the screen.  If it is null, the default icon will be used.

hth,
Odog
ASKER CERTIFIED SOLUTION
Avatar of yongsing
yongsing

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mentar

ASKER

Thanks... just tried it works perfectly :)