Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to determine canvas size?  RSS feed

 
Fredrik Andersson
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have developed a app in my J2ME Wireless Toolkit, but this canvas is much bigger than my Ericsson K700 that is just 176*220.

Do I need to compile a version of my app for each screen size/phone?

Best regards
Fredrik
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be careful about duplicate posting. I closed the other thread with this exact same question. You can always delete your own threads by editing your first post in the thread, and clicking the Delete checkbox.

Mark
 
Jerry Olsson
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start your program with getting the screen size (use your Displayable) then resize everything according to the screen size.
myDisplay.getWidth() myDisplay.getHeight()
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!