pete stein wrote:Are Box's opaque? I'm betting not.
One thing you might (or might not) have to worry about is that
until JDK4 Box wasn't even a Component. (It was a direct subclass
of Container.) As such, it doesn't have a setOpaque() method
when running under JDK1.3.1 or earlier: NoSuchMethodError
If this is a problem, you could instead set a BoxLayout on a JPanel.