BorderLayout
by Brian Cody
01 Feb 2008
(Updated 24 Aug 2011)
Simple layout manager for GUIs designed to mimic the Java BorderLayout.
|
Watch this File
|
| File Information |
| Description |
BorderLayout uses uipanels to create a simple layout manager for GUIs that is modeled after Java's BorderLayout. It allows you to carve up a figure window or uipanel parent into five regions: North, South, East, West, and Center. North and South have static pixel heights but vary their widths with the size of the parent. East and West have static pixel widths but vary their heights with the size of the parent. Center occupies the remaining space in the parent.
Since BorderLayouts can be nested inside each other, they can be used to construct professional looking GUIs in MATLAB.
Included in this submission are four files:
BorderLayout.m: The layout manager.
ExampleSimple.m: A small script that shows a single BorderLayout used in a figure window.
ExampleComplex.m: A small script that shows nested BorderLayouts inside a uipanel.
ExampleApplication.m: A simple application that makes use of BorderLayout as a layout manager. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
MATLAB GUI Makeover
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 04 Feb 2008 |
Added an example to the M-help for BorderLayout.m and restructured the zip file to make the examples more clear. |
| 05 Feb 2008 |
Updating category. |
| 24 Aug 2011 |
Updated copyright. |
|
Contact us at files@mathworks.com