在顶部菜单命令中发出问题

时间:2018-03-10 14:19:43

标签: codenameone

侧面菜单命令中的文字超出了侧面菜单的宽度,这有点奇特的效果。

观看视频here

在这种情况下,如何在textArea中设置多线?

 Command protectedPlantAndSpecies = new Command("  Protected plants and species of nepal", protectedPlantIcon) {

        @Override
        public void actionPerformed(ActionEvent evt) {
            new Notification(res).show();
        }
    };
    f.getToolbar().addCommandToSideMenu(protectedPlantAndSpecies);

1 个答案:

答案 0 :(得分:0)

默认启用此功能,您可以通过init(Object)方法调用此功能来禁用它:

Label.setDefaultTickerEnabled(false);

您还可以将主题常量tickerSpeedInt设置为0。