Kind of like this. ----- Question 1 of 8 ------------------------ | ______________________________________ | | | | | | | This is a TextAre | | | |_____________________________________| | |____________________________________________|
the outer border with rectangle kind of and with a caption 'Question # of #' . All the dotted lines will be continuous though (can't do it here in text. Hope you get it this time
Oh, you mean like TitledBorder... unfortunately, components having borders was introduced in Swing, so you'll have to do this yourself by overriding the paint( Graphics ) method of Panel and paint the border on the component yourself. To figure out how big the caption should be you'll have to use the FontMetrics class to get the dimensions of the String... you'll also have to mess with setInsets() and getInsets() to make sure and put enough space around the component to draw the border correctly... [ August 02, 2002: Message edited by: Nathan Pruett ]
Write once, run anywhere, because there's nowhere to hide! - /. A.C.