jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes StackOverflowError in LinkFollower Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "StackOverflowError in LinkFollower" Watch "StackOverflowError in LinkFollower" New topic

StackOverflowError in LinkFollower

okinrus N/A

Joined: Nov 01, 2003
Posts: 3
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

Joined: Nov 01, 2003
Posts: 3
Solved it. LinkFollower constructor was being called recursively.
subject: StackOverflowError in LinkFollower
Similar Threads
JPopupMenu or JMenu - neither is quite what I'm after.
How to put a hypertext in JEditorPane
Problem while working with JPopupMenu
Combine two different JPopupmenu
Creating Browser Window ..