Article View: borland.public.jbuilder.java.api
Article #64Java2D - drawString( ... ) does something strange ..
From: newsgroup.borland.com
Date: Mon, 21 Mar 2005 12:56
Date: Mon, 21 Mar 2005 12:56
26 lines
1840 bytes
1840 bytes
Hello, I wrote an appliction what uses a subclass of Component to draw some lies and text on a swing based userinterface. There is an editor frame where you can input the text, the color etc ... The preview in this Box works fine, like I want it. The text is shown correctly. But now I use the same Object to render it (the text) to an other Component via the Method: g2.drwaString( ... ). Here is the Problem: The text has the corecct size and Color. The Position is also correct. But the text is show in kind of a mirror show something, that means the letters are in correct order but are display under the baseline (they are standing on their head :-) I think the problem comes from an AffineTransform Object used in the paint Method of the Object I want to render my text to, but i could not find it yet and I have no idea what fact cauces this effect realy. How can I force the text is shown in the right way on this Component? Thank you very much. Mirko K�mpf
Technical Details
Message-ID:
<423ec457@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,16ee92825b341a6a,start X-Google-Attributes: gid1089d0,public X-Google-Language: ENGLISH,ASCII From: "newsgroup.borland.com" <mirko.kaempf@gmx.de> Newsgroups: borland.public.jbuilder.java.api Subject: Java2D - drawString( ... ) does something strange .. Date: Mon, 21 Mar 2005 13:56:46 +0100 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 145.254.74.14 Message-ID: <423ec457@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111409751 145.254.74.14 (21 Mar 2005 04:55:51 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail