How to refresh swing program node UI?

I am trying to redraw the UI of a program node based on user inputs (button click) and not sure how to invoke SwingProgramNodeView.buildUI()
Is this doable?
Thanks in advance

I don’t believe the buildUI method is intended to be called more than once. You will likely need to simply add all elements to the screen, and control their visibility property depending on your controls.