Originally posted by Gregg Bolinger:
You don't add components to a Box.
Actually, a Box is an alternative to JPanel that has a BoxLayout as its default layout manager, and some handy BoxLayout-related methods.
I think Box isn't very widely used because there's a nasty JDK 1.3/1.4 binary incompatibility problem: it used to be a subclass of Container, and then it became a subclass of JComponent; as a result, if you subclass Box, it's very likely that your code will only run under one JDK or another, but not both, depending on which you compile with.