Ive searched but I found nothing until now. What is too slow, the painting-routine or the database querys? If the last one is the problem you could fetch the coordinates one time to save them in an array. After this you read the data every time from this array. If the first point is the problem, then try to save to created picture in an array (or something else, in Basic I do this by using an array
. Maybe there is a better data type in Java.). Then, if the paint-method is invoked you just draw the saved picture to your Panel.