aspose file tools*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to disable coffee cup icon and the menu that comes with it?