[java] Groupping components component

Started by
1 comment, last by stefu 21 years, 11 months ago
I know I can group componentes with JPanel, but what is the compontnet to visually group components. In Win32 programming there was frame rectangle that has text on top and components inside the rectangle grouped together. Help, can''t find similar in java! Thx!
Advertisement
You can set the border of a JPanel to have a title like this.

myPanel.setBorder(BorderFactory.createTitledBorder("Title"));

that should do what your looking for

Ford! theres an infinate amount of monkeys outside wanting to talk to you about a script of Hamlet they created!

www.mikeditum.co.uk
Ford! theres an infinate amount of monkeys outside wanting to talk to you about a script of Hamlet they created!www.mikeditum.co.uk
Exactly what I meant!
Thanks

This topic is closed to new replies.

Advertisement