Please change your name to be compliant with JavaRanch's naming policy. Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name. Thanks, Cindy I am moving this thread to the AWT/Swing forum.
"JavaRanch, where the deer and the Certified play" - David O'Meara
You need to do two things (I think): - Use a layout managerin your Frame; e.g. GridLayout(1,1) - implement getPreferredSize() in your Canvas so that the layout manager knows how big it should be. Note this is based on AWT. I don't know if Swing works exactly the same way.