I have a program with one panel on the right containing a BufferedImage that is very frequently updated and reapainted (using paintImediately()) and on the left are some buttons and JTextAreas. Often, when the BufferedImage is repainted, the buttons on the left are repainted with a portion of the image, obscuring their contents. How can I prevent this?

Here is the method I call that does the repainting:

void paintPlot() {
    plot.paintImmediately(0, 0, 1000, 1000);
}

I call it from a separate thread, if that is relevant.

有帮助吗?

解决方案

It was answered in the comments. I needed to create this so I could mark the thread as closed.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top