Yes, I put textArea.getStyle().setFgColor(0); and now it works. I see that default values are not what could be expected. But they also change. Indeed in the test example the content is visible but it has Bold characters. It has to do with the theme but I see that in the test example also other textfields have the same Bold theme, while in my app just the TextArea had white text. Regards
Il giorno giovedì 10 dicembre 2020 alle 05:20:02 UTC+1 Shai Almog ha scritto: > I guess the selected foreground of the text has a different color and the > unselected version if probably white on white or something. > > You can use the component inspector to see what's happening. > > On Wednesday, December 9, 2020 at 8:49:43 PM UTC+2 P5music wrote: > >> My app has a form where a TextArea is inside a particuar layout. >> This layout is not very complicated and the TextArea is at bottom. >> The TextArea is populated with some multiline text. >> >> What I experience is that the TextArea stays like empty, blank, unless I >> try to select the text I can imagine inside, then some text appears in a >> selected form, but it disappears. >> If I click outside and the inside I see a momentary glimpse of all the >> content. >> >> I also tried with putting it in a BorderLayout but it is the same. >> >> I created a test example with a similar layout, and I can see the text >> and the normal behaviour so I couldn't reproduce the issue. >> >> So I ask, what could cause the issue? what can be some of the possible >> causes? >> Thanks in advance >> >> -- 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/675602b8-0065-40c1-a3ea-7689119818fdn%40googlegroups.com.
