This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Applets and the fly likes How to disable coffee cup icon and the menu that comes with it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to disable coffee cup icon and the menu that comes with it?" Watch "How to disable coffee cup icon and the menu that comes with it?" New topic
Author

How to disable coffee cup icon and the menu that comes with it?

Mike Perry
Greenhorn

Joined: Feb 05, 2011
Posts: 2
Can I disable the coffee cup icon and the menu that comes with it when I display standard JOptionPane dialogs?
Gursewak Singh
Ranch Hand

Joined: Jan 09, 2011
Posts: 79

insert code...
obj.setIconImage(Toolkit.getDefaultToolkit().getImage());

In getImage() you can pass the path of any icon if you want to change icon of coffee cup icon
Mike Perry
Greenhorn

Joined: Feb 05, 2011
Posts: 2
Thanks for taking time and replying.

But I want to totally remove that icon. I mean display nothing. I saw a work around on the web to use

new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);

With this workaround, I do not see any icon, but when I right click in that area, I still see the drop-down menu.

Ideally for my application, I do not want to display any icon or any drop down menu.
Gursewak Singh
Ranch Hand

Joined: Jan 09, 2011
Posts: 79

Friend try it without argument........
if it does't work then just place [ ("")]....
hope it will work and fulfill your requirement.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to disable coffee cup icon and the menu that comes with it?