• Advertisement

Archived

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

[java] Groupping components component

This topic is 5773 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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

Share this post


Link to post
Share on other sites

  • Advertisement