java - JavaFX UI elements hover style not rendering correctly after resizing application window -


at times, ui elements have hover style not render @ , white box left in it's place. happens after resize application window , when ui element outside of original bounds of application window. button shown in images below not render correctly after removing mouse pointer hover position, issue occur whenever button needs repainted.

"device logging" button being hovered mouse, before resizing window.

after resizing window. both "device logging" , "misc tests" buttons 100% outside of original bounds of window. "cloud server migration" button still rendering correctly.

i have set styles, removing them has no effect. issue seems appear when there other processing taking place, such running firmware update function. tells me there may taking ui time, have expected affect every ui element, not ones.

one other note, ui converted swing javafx, of threading did not include use of task or platform.runlater(). have since made sure ui updates using platform.runlater(), have not yet converted of original threads don't update ui tasks. below including framework of running firmware update.

edit: able reproduce issue without starting firmware update, don't think has processing blocking ui rendering. issue occurred after using of ui. such removed code posted above. leads me believe has more actual layout of ui.

i believe have figured out issue. use listview hold object , cellfactory render each of cells custom ui. when populating list items, additional threads spawned retrieve information each object within cell. variables associated object bound view property within custom ui. not using platform.runlater() update these properties new information. after updating sets runlater, issue appears have been fixed.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -