Archived

This topic is now archived and is closed to further replies.

stefu

[java] Groupping components component

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites