drawString(..) problems on Linux

I am running an own Java application, now on Linux too, under RedHat. There is a new phenomena never shown on other machines (SGI, Windows, Sun):

In a ruler canvas a horizontal time-line (like a centimeter) has to be re-painted, with updated cursor position.

I get the cursor + line pieces right, but the strings containing the digits (100, 200, ...) do not get shown, though the string is there, and the lines in the paint method of the ruler canvas are passed:

g.drawLine(j, y-longdiv/2, j, y+longdiv/2);

g.drawString(s, j-fm.stringWidth(s)/2, y-longdiv/2);

Thus the effect of drawLine is shown, drawString is not. No double-buffering or alike is done.

BUT if I re-size or scroll the canvas, then the effect of drawString is there. As long as there is no paint() issued from my program, when the cursor position is updated but the digits are not shown.

Has anybody ran into similar problems? Is this some known bug?

Thanks,

Zsofi Ruttkay

zsofi@cwi.nl

[1033 byte] By [zsofi] at [2007-9-26 2:46:29]
# 1
HiHave you find any solution?Karesz
ottkaresz at 2007-6-29 10:29:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...