Bookmark Topic Watch Topic
  • New Topic

java.lang.StackOverflowError

 
Sandy Abraham
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys,
I wrote a class for MyCanvas which has the paint method.
And i have another class 'HandleCanvas' which extends MyCanvas and implements KeyListener. In MyCanvas i wrote addKeyListener(new HandleCamvas()). Everything compiles ok. except that when i actually execute it, there's this java.lang.StackOverflowError in main. From what i know, it's because of some recursive method calling. But I am not sure where went wrong. Please help. Thanks.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Sandy,
Please don't cross-post. Followups here, please.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!