I used the defaut valuse but also using textParameterValueDialog.setOpaque(true); textParameterValueDialog.getStyle().setBgColor(ColorUtil.WHITE); textParameterValueDialog.getStyle().setOpacity(100); textParameterValueDialog.getDialogStyle().setOpacity(100);
it is transparent. Regards Il giorno mercoledì 16 dicembre 2020 alle 04:48:11 UTC+1 Shai Almog ha scritto: > How did you set the transparency of the interaction dialog? > > On Tuesday, December 15, 2020 at 6:06:09 PM UTC+2 P5music wrote: > >> I am using InteractionDialog to create a little dialog for the user to >> input a text value. >> It works but I see that the InteractionDialog is transparent, and the >> TextField is transparent too, foreground color is black for the TextField >> but I need that its background is white. >> I tried to set the background color and the setOpaque(true) but the >> TextField is not affected at all, it is the same. >> >> editText.getStyle().setBgColor(65536 * 255 + 256 * 255 + 255); //couldn't >> use Color.WHITE >> // or editText.getStyle().setBgColor(ColorUtil.WHITE); doen't change the >> bg color >> editText.setOpaque(true); >> >> What's wrong? >> Thanks, regards >> > -- 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/ae3a56eb-5004-438c-b8aa-82c143c457c9n%40googlegroups.com.
