Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add image to the right of the JMenubar  RSS feed

 
shashikant kulkarni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends
I am creating the menu bar in swing but i have problem in adding the image to the extreme right of the menubar.
Waiting you earliest possible solution.
Thanks in advance..
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example:
menuItem = new JMenuItem("Both text and icon", new ImageIcon ("images/middle.gif"));

From http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/PopupMenuDemo.java
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!