Gang, I am trying to understand the overall layout algorithms, and looking at Border (since I though it would be a simple case).
getPreferredHeight takes width as input, where -1 signals "nothing particular", and vice versa for getPreferredWidth. But what does the returned value allow to return? Can a component not say "Give me whatever space that is available, and I'll do what I can with what you give me." ? Cheers -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug
