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 title bar icon on a JDialog box 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 "title bar icon on a JDialog box" Watch "title bar icon on a JDialog box" New topic
Author

title bar icon on a JDialog box

Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
Hi
How to set the icon on the title bar on a JDialog box?
Also, in Windows, when you hold down Alt+Tab, you will see some ICONs that you can choose from and activate the corresponding program. (default is the coffee icon) Is there a method to set these ICONs for the JDialog box?
Thanks all,
Kawaii
Greg Brouelette
Ranch Hand

Joined: Jan 23, 2002
Posts: 144
It will pick up the icon from it's parent frame or dialog. You pass this parent into the JDialog via the constructor. In that parent frame you would use the public void setIconImage(Image image) method to set it's icon.


For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: title bar icon on a JDialog box
 
Similar Threads
How to set icon jdialog title bar
Setting Title Icon in JDialog
HELP - JDialogs!
JDialog icon
JFC