IBGroupBoxPanel box = new IBGroupBoxPanel();
box.setBorder(new TitledGroupBoxBorder("Hello"));
box.add(new JLabel("Hey");
You need to include the nib4j.jar with your code. Unfortunately, while
free for education, this is commercial code. There doesn't seem to be
any source.
I think this can be replicated pretty easily though. You just need a
JPanel with the appropriate background, and you need to create an
appropriate Border. It can be based on TitledBorder for instance.
Implement a paintBorder which draws a rounded rect, play with some
insets, and it should be done. If I do it, I'll post the code.
I've also contacted the developer to see if he's willing to share.
J
On 17-Dec-04, at 2:03 AM, Manuel Hermann wrote:
Does anyone know how to get an Aqua-style Box in Swing? This is the
Box
UI element as seen in Interface Builder.
You may try out nib4j. As you can see on the screen shot, it supports
group
boxes with the typical Mac OS 10.3 style.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden