Creating Graphical User Interfaces    

List Box Directory Reader

This example uses a list box to display the files in a directory. When the user double clicks on a list item, one of the following happens:

The following picture illustrates the GUI.

View the Layout and Application M-File

Use these links to display the FIG-file in the Layout Editor and the application M-file in the MATLAB Editor. This enables you to see the values of all component properties and to explore how the components are assembled to create the GUI. You can also see the complete code listing.

Click here to display the layout in GUIDE.

Click here to display the application M-file in the editor.

Implementing the GUI

The following sections describe the implementation.


 Protecting the GUI with a Close Request Function Specifying the Directory to List