Painting issues with Java
The issues I am raising is hopefully easy to solve. I noticed if I have a method that is called by clicking a button that takes a long time to say draw on the screen the button will not repaint till the method is done painting. The painting is done by another component that is from a third party library. Same but worse is when the control is a JComboBox where that control will stay in state where the list is shown till the painting is done.
What is the solution?