Sunday, April 13, 2014

Can't add another component
































































That's because matWood is not a Component. Since you are working with Swing, best to extend JComponent to make it a component. Also, by convention, class names should start with upper case letters.
































































Also, if you at put the @Override annotation before the paintComponent() method, it may have given you a hint that something was missing.
































































Regards,































































Jim































































































































No comments:

Post a Comment