I love these entries because 1) I love GUIs and 2) these tools make GUI building fun and easy.
GridBagLayout is a rich set of tools implemented using the MATLAB Class System. It has a nice set of properties and methods to perform sophisticated layout of graphical components.
As you can see from the following set of commands, you can add components and provide individual constraints or let the layout
object handle everything. When you resize the figure, the components maintain the appropriate size/location based on the settings.
Here's an animation of how each command affects the GUI.
Also check out the published document that Jason included with his entry. Stay tuned for Part 5. We'll look at another entry that simplifies the GUI building process
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.