This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes hot to change the icon at title bar? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "hot to change the icon at title bar?" Watch "hot to change the icon at title bar?" New topic
Author

hot to change the icon at title bar?

ali rafiq
Ranch Hand

Joined: Jan 09, 2003
Posts: 75
how to change the icon at title bar .. and may i change the also change the three button of minimize, restore, and close button at title bar,,


if u learn to break the rock .. next day u will be looking to Mountain.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

setIconImage( Image ) will let you change the icon that appears in the upper left corner of the frame. You can't mess with the buttons on the right side of the frame... they are provided by the native peer of the frame. So, you'll have to use JNI yourself or a library that provides a modified frame lets you affect this...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hot to change the icon at title bar?
 
Similar Threads
how to customize the title bar of a JInternalFrame
JFC
JFrame
Setting icon/image on Title of JOptionPane.showConfirmDialog
Metal Look and Feel of JFrame on Windows XP