This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

StackOverflowError in LinkFollower  RSS feed

 
okinrus N/A
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone determ why first code does not have a StackOverflowError while the second one does? Tab and HistoryTracker are class with static members that gives an interface to a global JTabbedPane object and history tracking. The HyperScrollPane is a subclass of the JScrollPane and looks like this


Code 1:

Code 2:
 
okinrus N/A
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved it. LinkFollower constructor was being called recursively.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!