🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
1 messages
1 total messages Started by newsgroup.borland.com Mon, 21 Mar 2005 12:56
Java2D - drawString( ... ) does something strange ..
#64
Author: newsgroup.borland.com
Date: Mon, 21 Mar 2005 12:56
26 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads