WTF?! SuXX0r!
Nov. 17th, 2004 11:03 amI've said it before, but allow me to reiterate my position: if you have ever had anything to do with the development of the Swing windowing library for Java, you had best not let me know about it, because there's a beating with your name on it waiting for you...
no subject
Date: 2004-11-17 10:27 am (UTC)no subject
Date: 2004-11-17 10:57 am (UTC)Boxes are supposed to be generic containers for JComponents, but if you have a Box that contains both other Boxes and non-Boxes, it won't lay out properly. You have to wrap everything in a Box, or nothing.
You can't specify a required size of a component -- only the preferred size. And you can't specify just one dimension, you must specify both width and height, or specify neither.
A vertical strut has zero width -- unless it's the only thing in its container, in which case it DOES have a width. And adding "glue" (which expands to fill the available space) to a container does nothing, because containers always shrink-wrap to their contents, so you have to add a strut as well to make it fill up the space.
It's just so god-awful painful to make things line up properly that it makes me want to tear my hair out.
no subject
Date: 2004-11-17 10:46 am (UTC)