![]() |
[Resolved]Odd JavaFX problem
So I have a listview that displays a label on a callback that checks a list if that particular item is disabled, and adjusts it display string and appearance occordingly, however, it does not update unless the form is reloaded or I scroll down and back up.
Is there a call I need to make to ensure the cell is repainted after I make a change? I have caching disabled on the listview already, doesn't seem to make a difference. This is my callback: Code:
... |
Despite the similar sounding names, Java is not the same as Javascript.
Moving from javascript forum to Java forum. I'm not familiar with the JavaFX library (which I recall looking a bit into and its a gui extension?), but what you have here looks similar to swing. Under the description you have here, it is similar to a swing component issue as well. The setGraphic is a bit different though. Does the JavaFX have an invalidate option as a part of its base component? If so, try invalidating "this" and see if the gui forces a repaint. I often have these same issues with the swing which is why I typically reserve components that are treatable as input components as the container for anything dynamic (textboxes for example will always repaint). |
Quote:
And javafx does not invalidate, nor can I find anything about repaint/redraw/paint/etc you would expect from typical java. |
Quote:
|
Quote:
Edit: I fixed it by forcefully clearing and repopulating the list, forcing it to redraw all items. Not ideal, but it works. |
Quote:
|
| All times are GMT +1. The time now is 01:56 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.