1
votes

The text in side menu command exceeds the width of the side menu, which makes somewhat peculiar effect.

see the video here

How can I set multiline as in textArea in this case?

 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

1 Answers

0
votes

This is tickering which is enabled by default, you can disable it by calling this in your init(Object) method:

Label.setDefaultTickerEnabled(false);

You can also set the theme constant tickerSpeedInt to 0.