function setDropDownButtonStyle(btn,newStyle)
%

% Author(s): A. Stothert 10-Feb-2011
% Copyright 2011 The MathWorks, Inc.
% $Revision: 1.1.4.1 $ $Date: 2013/09/26 18:27:57 $

% SETDROPDOWNBUTTONSTYLE
%
%    Helper function for usability test to make drop down buttons look like
%    comboboxes
%

switch lower(newStyle)
    case 'selector'
        javaMethodEDT('setOpaque',btn.Peer,true);
        p = 247/255;
        javaMethodEDT('setBackground',btn.Peer,java.awt.Color(p,p,p));
        javaMethodEDT('setBorder',btn.Peer,javax.swing.BorderFactory.createLineBorder(java.awt.Color(0.7,0.7,0.7)));
    otherwise
        javaMethodEDT('setOpaque',btn.Peer,false);
end
end