www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@javacomponent/pPostSetPosition.m

    function evt = pPostSetPosition(obj, evt)
%PPOSTSETPOSITION Respond to position being set
%
%  PPOSTSETPOSITION(OBJ, EVT) is called after the object's position
%  property has been set.

%  Copyright 2000-2012 The MathWorks, Inc. and Ford Global Technologies, Inc.


if ~isempty(obj.hPanel)
    % set position of container for javacomponent
    set(obj.hPanel, 'Position', obj.Position);
else
    % Check to see whether component is constructed
    obj.pSetupComponent;
end