Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top