function border = makedefaultbutton(uic)
%ADDBUTTONBORDER   Plot Editor helper function

%  Copyright (c) 1984-98 by The MathWorks, Inc.
%  $Date: 1998/07/09 21:35:20 $  $Revision: 1.2 $

parent = get(uic,'Parent');
oldUnits = get(uic,'Units');
color = get(uic,'ForegroundColor');
set(uic,'Units','pixels');
pos = get(uic,'Position');
border = axes('Units','pixels','Position',pos,...
        'Parent',parent,...
        'XTick',[],'YTick',[],'ZTick',[],...
        'Color','none',...
        'XColor', color,...
        'YColor', color,...        
        'Box','on');
set(uic,'Position',pos+[1 1 -2 -2]);
set(uic,'Units',oldUnits);
