function GUIexample9_10

%% Create figure
screenSize = get(groot, 'ScreenSize');
x_size  = 400;
y_size  = 250;
figureColor	= [0.9 0.9 0.9];

fig = figure('Units', 'pixels', 'Name', 'Example' ,'Position', ...
   [(screenSize(3)-x_size)/2 (screenSize(4)-y_size)/2 x_size y_size], ...
   'Tag', 'figExample', 'Color', figureColor, 'MenuBar','none', ...
   'NumberTitle', 'off');

%% Create panel
panelColor = [0.98 0.98 0.98];

panel1 = uipanel('Units', 'pixels' , 'Position', [90 180 220 60], ...
   'Title', 'Visibility', 'BackgroundColor', panelColor, ...
   'Tag', 'panelVisibility');

%% Create text fields
textColor	= [0.95 0.95 0.95];
textFontSize1	= 9;
textFontSize2	= 10;

text1Xlabel = uicontrol('Units', 'Normalized', ...
   'Position', [0.1 0.4 0.15 0.075], 'Style', 'text', ...
   'String', 'X-position:', 'BackgroundColor', figureColor, ...
   'FontSize', textFontSize1);

text2Xdata = uicontrol('Units', 'Normalized', ...
   'Position', [0.26 0.4 0.175 0.075], 'Style', 'text', ...
   'String', '', 'BackgroundColor', textColor, ...
   'FontSize', textFontSize2, ...
   'Tag', 'XPos');

text3Ylabel = uicontrol('Units', 'Normalized', ...
   'Position', [0.55 0.4 0.15 0.075], 'Style', 'text', ...
   'String', 'Y-position:', 'BackgroundColor', figureColor, ...
   'FontSize', textFontSize1);

text4Ydata = uicontrol('Units', 'Normalized', ...
   'Position', [0.71 0.4 0.175 0.075], 'Style', 'text', ...
   'String', '','BackgroundColor', textColor, ...
   'FontSize', textFontSize2, ...
   'Tag', 'YPos');

%% Create pushbutton
hButton = uicontrol('Units', 'Normalized', ...
   'Position', [0.3 0.1 0.4 0.125], ...
   'Style', 'pushbutton', ...
   'String', 'End', ...
   'ForegroundColor', [0.8 0.9 0.9], ...
   'BackgroundColor', [0.1 0.5 0.6], ...
   'FontSize', textFontSize1);
%% Create checkbox
visibleHandle = uicontrol('Parent', panel1, ...
   'Units', 'Normalized', ...
   'Position', [0.225 0.25 0.6 0.5], ...
   'Style', 'checkbox', ...
   'String', 'Show position', ...
   'Tag', 'choiceOfVisibility', ...
   'BackgroundColor', panelColor, ...
   'TooltipString', 'click to show mouse position');

end