简体   繁体   English

如何将标签和图像图标插入到netbeans平台应用程序的菜单栏中

[英]How to insert a Label and an image icon into the Menu bar of a netbeans platform application

In my netbeans platform based app, I need to add a Label which shows the user name and a image icon into the Menu bar. 在基于netbeans平台的应用程序中,我需要在菜单栏中添加一个显示用户名和图像图标的标签。 Menu items are defined in an xml file and action classes are used to define menu actions. 菜单项在xml文件中定义,并且动作类用于定义菜单动作。 How can I customize the menu bar in order to put a label and a image icon at the right corner of the menu bar? 如何自定义菜单栏,以便在菜单栏的右上角放置标签和图像图标? Is this possible? 这可能吗?

解决方案在论坛帖子中提供: http : //forums.netbeans.org/post-140363.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM