I want to write a string in 90 degree angle but i get an error "Affine unsupported"
Anyone got any idea why it wont work;
MIDP doesn't support affine transform although other ports do (e.g. the SE port and some others), hence no rotation etc.
To rotate text draw it on a square mutable image and rotate the image 90 degrees, you would probably need to draw the background color etc. too since MIDP's mutable images don't support transparency either (unless you use the modifyAlpha feature we provide which has some issues).
see LWUITImplementation.java. It is not implemented (only for images). In case you are using the LWUIT MIDP port it is not implemented there either (again only for images).
AFAIK if you want to rotate text in MIDP it gets tricky. The Graphic class there doesn't support that. In LWUIT you need would need to override the paint method of your TextArea/Field to call a custom drawTextArea which makes then usage of the following trick
Looking forward to other suggestions.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.