• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to display image along with text in MenuItem

 
Premila Anguraj
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to display image in AWT MenuItem. I can now display image along with text in JMenuItem. but i can't do with MenuItem. Any help in this regard is highly appreciated
[ July 05, 2003: Message edited by: Premila Anguraj ]
 
daniel xiao
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setIcon(new ImageIcon("$/zz.gif"));
 
Premila Anguraj
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Daniel xiao

It'll be of great help if u give the complete coding to show image along with text in the MenuItem and the packages required cos i am unable to get it still . Also i think, by setIcon(ImageIcon img), u mean something related to org.apache.struts.tiles.beans package?
 
Abhik Sarkar
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Premila,
I don't think it is possible to set an icon for an AWT MenuItem.
Regards,
Abhik.
[ July 09, 2003: Message edited by: Abhik Sarkar ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic