Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2012

    Question rotate text in j2me

    Hello every one
    I try to make a rotate text in j2me
    I used these methods :
    AffineTransform at = new AffineTransform();
    at.setToRotation(Math.PI / 4.0);
    g2d.drawString("Vertical text", 10, 10);
    but it doesn't help,I got this error " package java.awt does not exist
    import java.awt.Graphics2D;"
    so can anyone tell me how can I get this package ?, or is there any other method can help me ?
    please I hope someone can help me

  2. #2
    Regular Contributor
    Join Date
    Dec 2011

    Re: rotate text in j2me

    Hi Raghad and welcome to the Nokia Developers Discussion Boards!

    Java ME doesn't support the awt package. You have to do your painting using the Java ME Canvas class.

    One solution would be to use the The Scalable 2D Vector Graphics (JSR-226) API to rotate your text.

    Check out the Scalable 2D vector graphics examples for more details.


Similar Threads

  1. Reading text from a text file in j2me
    By baaluaanand in forum Mobile Java General
    Replies: 4
    Last Post: 2010-05-20, 03:13
  2. Text Rotate
    By taojia in forum Symbian
    Replies: 3
    Last Post: 2009-12-07, 17:39
  3. how to rotate the SWT Emulator for a 320*240 J2me app?
    By loup_shinden in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2009-10-27, 20:14
  4. How to rotate annunciator and command action area in N95 using j2me...
    By aparna_bhure in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2009-04-20, 06:18
  5. Rotate dynamic text box
    By narender_raul in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-12-05, 18:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts