aspose file tools*
The moose likes Java Micro Edition and the fly likes Is it possible to use Screen and Canvas together? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Is it possible to use Screen and Canvas together?" Watch "Is it possible to use Screen and Canvas together?" New topic
Author

Is it possible to use Screen and Canvas together?

soni KL
Greenhorn

Joined: Aug 13, 2004
Posts: 5
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

Yes you can have some "screens" use Canvas and some use Screen. That is very legal.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Jason Fox
Ranch Hand

Joined: Jan 22, 2004
Posts: 114
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to use Screen and Canvas together?