You can use an action listener or use a TextField with a data change listener to track changes to the text component. This will let you recalculate based on user input assuming this is valid input (notice you need to catch NumberFormatException that can be thrown by the parseDouble method).
I'm not sure why the number isn't updated visually I'm not sure which field this maps to and how that's represented in the UI from this code. On Sunday, September 27, 2020 at 10:53:14 PM UTC+3 [email protected] wrote: > Upps, the image does not load > -- 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/beb3aaee-6960-40ac-9c20-335546f44c7bn%40googlegroups.com.
