Worm Game: paintComponent method

22 views
Skip to first unread message

danha...@googlemail.com

unread,
Aug 15, 2017, 3:41:31 AM8/15/17
to mooc.fi
Hi,

I'm having problems with 12_49.WormGame.

I can't get the test to pass for 49.6, and get the error message "java.lang.AssertionError: call super.paintComponent(g); was in the wrong place, it should be first line of the method paintComponent."

The statement super.paintComponent(g) is the first line of my paintComponent method in the DrawingBoard class, so I don't understand what I'm doing wrong.


Best regards


Supported languages are English and Finnish

Please use our build in TMC Pastebin when asking questions related to your code  
 
TMC Plugin has built-in code sharing feature. 
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.  

You may use our web interface to share code snippets: http://paste.mooc.fi
Reply all
Reply to author
Forward
0 new messages