classdef app_3_2_2 < matlab.apps.AppBase

  % Properties that correspond to app components
  properties (Access = public)
    UIFigure       matlab.ui.Figure
    DropDown       matlab.ui.control.DropDown
    DropDownLabel  matlab.ui.control.Label
  end

  % Callbacks that handle component events
  methods (Access = private)

    % Code that executes after component creation
    function startupFcn(app)
      app.DropDown.Items = ["Item1","Item2","war nix"];
    end
  end

  % Component initialization
  methods (Access = private)

    % Create UIFigure and components
    function createComponents(app)

      % Create UIFigure and hide until all components are created
      app.UIFigure = uifigure('Visible', 'off');
      app.UIFigure.Position = [100 100 332 202];
      app.UIFigure.Name = 'MATLAB App';

      % Create DropDownLabel
      app.DropDownLabel = uilabel(app.UIFigure);
      app.DropDownLabel.HorizontalAlignment = 'right';
      app.DropDownLabel.Position = [69 133 65 22];
      app.DropDownLabel.Text = 'Drop Down';

      % Create DropDown
      app.DropDown = uidropdown(app.UIFigure);
      app.DropDown.Position = [149 133 100 22];

      % Show the figure after all components are created
      app.UIFigure.Visible = 'on';
    end
  end

  % App creation and deletion
  methods (Access = public)

    % Construct app
    function app = app_3_2_2

      % Create UIFigure and components
      createComponents(app)

      % Register the app with App Designer
      registerApp(app, app.UIFigure)

      % Execute the startup function
      runStartupFcn(app, @startupFcn)

      if nargout == 0
        clear app
      end
    end

    % Code that executes before app deletion
    function delete(app)

      % Delete UIFigure when app is deleted
      delete(app.UIFigure)
    end
  end
end