You might have to repaint the button (repaint()). But if the change of text causes the button's size to change, you may have to revalidate its parent container. If that the parent container's size would also be caused to change, you might have to revalidate its parent.. And so on, up to the Form itself. Try to revalidate as small a part of the UI tree as possible.
Also. Prefer revalidateWithAnimationSafety() over plain revalidate(), as it will work nicer with running animations. Steve On Thu, Sep 19, 2019 at 3:32 PM Peter Bell <[email protected]> wrote: > Thanx Steve, that solved the problem of the small map. > Now i have a last problem. It has also to do with the googlemap. I have > two forms , one with tabs and the other with the google map. In one of the > tabcontainer i have button the text changes when you click on it. > it changes from start to stop. When i go to map and then go back , the > button text doesnt change when you click on it . The command is executed. > Do i have to give a command to repaint the button. > And how do i do that? Would be great if you have also here for an answer. > Ciao peter > > > > -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/a05c27e5-fcc6-4c14-bb40-66c988ee9d0f%40googlegroups.com > . > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXYLXpwOf3zOg8vnYaxJD0Z3DCbM3m%3D8a0iZR4nhWvsiw%40mail.gmail.com.
