1 Replies - 3398 Views - Last Post: 26 December 2009 - 02:34 AM

#1 mossy464  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 30-October 09

Center alert text j2me

Posted 02 December 2009 - 07:02 AM

Hi,

Is it possible to center the text of an alert in j2me as it always comes up on the left hand side of the screen?
Is This A Good Question/Topic? 0
  • +

Replies To: Center alert text j2me

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Center alert text j2me

Posted 26 December 2009 - 02:34 AM

Yes, but there's no direct function to do that which means you'll need to add many spaces before the message to ensure that it gets padded to the right.
Unfortunately, this technique will only work for one type of phone, as others would have different screen dimensions and the same amount of spaces will result in different kinds of padding for each phone.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1