Glen Mazza wrote:
Looking at lines 299-302, you have a strange
createArea() function within braces--I'm unsure what
you're attempting to do there: this code (which calls
setupBasicLinkArea()) is never being activated:

lm = new InlineStackingLayoutManager() {
    protected InlineParent createArea(BasicLink node)
{
        InlineParent area = super.createArea();
        setupBasicLinkArea(node, parentLM, area);
        return area;
    }
};

This is quite possibly a Java 101 question, but what
does defining a function in this manner do--does it
append a new function createArea() to the lm object?

The lm is assigned an instance of an anonymous class
derived from InlineStackingLayoutManager(), with the
createArea method added or overridden.

J.Pietschmann




Reply via email to