www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@javacomponent/pSetupComponent.m
function pSetupComponent(obj) %PSETUPCOMPONENT Install the component from the peer % % PSETUPCOMPONENT(OBJ) gets the component from the peer and installs it in % the parent figure. % Copyright 2000-2014 The MathWorks, Inc. and Ford Global Technologies, Inc. if obj.Peer.isComponentConstructed && ~obj.ComponentHasAttached obj.ComponentHasAttached = true; obj.CreationListeners = []; comp = obj.Peer.getPanel; [~, hCont] = javacomponent(comp, obj.Position, obj.Parent); obj.hPanel = hCont; set(obj.hPanel,'Visible',obj.Visible); end