Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

Build frame with sections of different size

---------------------------------------------------
|                                                                     |
|                                                                     |
|                      red                                          |
|                                                                     |
|                                                                     |
|                                                                     |
---------------------------------------------------
|                       blue                                        |
---------------------------------------------------
|                      white                                       |
---------------------------------------------------
|                      orange                                     |
---------------------------------------------------

How to code to generate a frame containing 4 sections as shown?

Thank you


Avatar of for_yan
for_yan
Flag of United States of America image

You use the BorderLayout() and then put red panel to center and make another panel which should have gridlaout
and add three panels to that second panel and then place that second panel to the south location of BorderLayout
Avatar of Mike Eghtebas

ASKER

FYI the text Red, White, etc. will not show. The background need to be colored as shown
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial