Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMenuItem icon problem

843806Nov 28 2007 — edited Nov 28 2007
hi all,
I've two questions regarding Jmenu icons.

1.When i placed an icon on the Jmenu item using
Itm.setIcon(new ImageIcon("images/lockapplication.png")); 
the icon is getting displayed leaving some blank space at left part of the menu. So anybody can please tell me how to display an icon on menu item at the left most part of the menu.

2. Is there any way to set an icon with extension .ico as an icon in JMenu?

Regards...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2007
Added on Nov 28 2007
5 comments
488 views