Hi, Andrew Haley schrieb: >> Graphics2D g2D = (Graphics2D)g; > GdkGraphics doesn't extend Graphics2D. Do you have any reason to > believe that it should? It extends Graphics. Typical implementation issue. On the other class library this is possible always. Once upon a time I found this written down somewhere. @Ciamak: You need a newer GCJ. In more recent versions the cast will work. Regards Robert