This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Bartender
Posts: 11445
18
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
Bartender
Posts: 11445
18
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...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!