Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing view to landscape

 
Justin Cipriani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking to change the view of the midlet to be in a landscape view instead of the normal portrait.

Any ideas how to implement it?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Draw it sideways?

I don't think you have any choice in the high level GUI api.

If you have to have it landscape you would have to make CustomItems and use Canvas. But still not sure if it is 100% possible.

Mark
 
Justin Cipriani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What i am trying to do is to allow the my midlet to give the user the option to view it either vertically (normal view) or horizontally for cases where the screen is long and prefer that view.

Are there any built in methods that i can use?
 
Justin Cipriani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Additionally the midlet only contains text screen like a command prompt and some menus for options.

I looked up some places for anything on it and found nothing but i know there are some games for phones that allow the person to play it horizontally and some phones that have that view as a default but wondered how to implement in using J2ME.

Any help will be greatly appreciated.
Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are definitely using the Canvas and Drawing it all themselves. However, looking at the API's I can't find any methods, Constants, or other ways to do this. Your Test could be images that you create in a Paint Program and just display them, but for actual user entry I don't see a way.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic