Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to put group of GUI components in title border...?

 
Abhijit Kangale
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiii all,
I want to put group of components in title border. what simple way i can follow...? I can put title border on a single component using BorderFactory methods. any suggestions please....

Regatds,
Abhijit
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put all your components in a panel and then apply the border to the panel
 
Abhijit Kangale
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats fine maneesh. but what if i want to have more than one guoup in the same panel or frame...?

Regards,
Abhijit
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using proper layout managers, you can have multiple panels in the content pane. If required you can even have nested panels inside such panels.
How to use the layouts and which panels to nest and which panels to display the borders, would depend on your requirement.

More information on using layout managers here http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html
 
Abhijit Kangale
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks maneesh...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic