How to make a canvas object

How to make a canvas object

How can I make such an object which defined a viewable area, on which I can append many visual elements such as images and such. In other words, kinda close to the canvas class found in j2me or html 5. I'm doing a game project as you can guess. Any idea?