You don't mix creating components with drawing, and in fact your drawing code should be lean, mean, and blindingly fast and not have to worry itself with program logic or component creation or...