my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes how to put group of GUI components in title border...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to put group of GUI components in title border...?" Watch "how to put group of GUI components in title border...?" New topic
Author

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

Abhijit Kangale
Ranch Hand

Joined: Sep 17, 2009
Posts: 39
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

Joined: Jul 26, 2007
Posts: 9993
    
    7

Put all your components in a panel and then apply the border to the panel


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Abhijit Kangale
Ranch Hand

Joined: Sep 17, 2009
Posts: 39
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

Joined: Jul 26, 2007
Posts: 9993
    
    7

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

Joined: Sep 17, 2009
Posts: 39
thanks maneesh...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to put group of GUI components in title border...?
 
Similar Threads
doubt in deployment diagram
IDEA GUI builder - mnemonic for JTextField
Titled Border
Can you help me to remove this border?
Border around cells in JTable