Displaying an icon for Menubar's auto-created MenuButtons

When you populate a MenuBar via MenuBar.setMenus(), it automatically creates MenuButtons whose names are those of the passed-in Menus’ titles.
I am trying instead to have each automatically created MenuButton to be an image, with no text. I have the feeling that this is easy,
but I’ve attempted to do this a number ways with no success. If someone knows an easy way of doing this, please pass it along.

Thanks…

The “title” can be HTML. Put an <img> tag in it.

Here’s some sample code that worked for me:

final MenuButton lreStatusButton = new MenuButton("<img src='images/silk/application_side_boxes.gif' style='vertical-align:bottom'>  Status LREs", lreStatusMenu);

or this is better:

final MenuButton lreStatusButton = new MenuButton(Canvas.imgHTML("silk/application_side_boxes.gif") + " Status LREs", lreStatusMenu);