Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to use Screen and Canvas together?

 
soni KL
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I wanted to know whether the subclasses of Displayable, Screen and Canvas can be used interchangeably in the same program. It will be easier to write menu's using List and the other game part of the application using Canvas, but I am not sure if we can use both together.

Any kind of hints will be of great help

Thanks
soni
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can have some "screens" use Canvas and some use Screen. That is very legal.

Mark
 
Jason Fox
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean using Canvas and Screen in the same MIDlet, or mixing the two in the same display, such as a Form with a paint method? A single MIDlet can mix as many forms and canvasses as it wants, but you cannot mix the two in a single display. (You cannot 'append' a TextField onto a Canvas, for example)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic