Boxes don't work.
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
You can not set a border on a vbox or a hbox. One might think that this is expected behavior, because the H/VBox is extended from Box which is not extended from JComponent, but rather from component. However, the documentation for VBox/HBox says that it supports the Border tag. Simple fix is to make H/VBox extend JPanel and set a BoxLayout on it right after calling the default constructor.