Skip to main content

Painting issues with Java

1 reply [Last post]
Joined: 2005-10-10

Hi All,

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?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-04-27

Hm', I guess, I do not compeletly understand the problem. My understaning is, that you press a button resp. select something from a combobox and it takes some time till the painting with the selection is done.

Or do you mean, that the object (=button resp. combobox) are redrawn? resp. that the method paint() is finished?

My quick question to you is: What is done on the EDT? Is there some processing done, which sucks time from the EDT?