Probably you want to use getStyle() or getAllStyles() instead of getSelectedStyle().
On Mon, Jun 24, 2019 at 6:18 AM Muchey <[email protected]> wrote: > This code snippet was done for Button: Submit, Clear and Add, initially. > > Button submit=new Button("Submit"); > > submit.getSelectedStyle().setTextDecoration(Style.TEXT_DECORATION_UNDERLINE); > > Buttons looked like the one in the attached screenshot. > > Now that line was deleted to this below > However, buttons still looked like this shown in screenshot, even after > revalidate, and rebuild was done. > > Button submit=new Button("Submit"); > submit.getSelectedStyle().setTextDecoration(Style.TEXT_DECORATION_NONE); > > -- > 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]. > Visit this group at > https://groups.google.com/group/codenameone-discussions. > To view this discussion on the web visit > https://groups.google.com/d/msgid/codenameone-discussions/dfffed22-dbaa-44e5-a2f7-a57e0a1196be%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/dfffed22-dbaa-44e5-a2f7-a57e0a1196be%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUec6%2B7gu7fGhxrmHRNAqkK-rbua71ZGHoa0SXoKc1bOg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
