Using java swing components in MATLAB

时间:2012-12-18 16:51:43
【文件属性】:
文件名称:Using java swing components in MATLAB
文件大小:16KB
文件格式:ZIP
更新时间:2012-12-18 16:51:43
Using java swing components in JCONTROL provides an easy way to integrate a full range of java GUIs from the java.awt and javax.swing libraries into MATLAB. Example: obj=JCONTROL(Parent, Style); obj=JCONTROL(Parent, Style,... PropertyName1, PropertyValue1,... PropertyName2, ProeprtyValue2....); Inputs: Parent: the handle of a MATLAB figure or other container for the resulting component Style: string describing a java component e.g. 'javax.swing.JPanel', 'javax.swing.JButton' A JCONTROL object aggregates the MATLAB handle graphics container and the Java component (as returned by MATLAB's JAVACOMPONENT function) into a single object. Access to the JCONTROL's properties is provided by GET/SET calls. MATLAB dot notation may also be used. This notation also provides access to the java object's methods e.g. pos=myobject.Position; sz=myObject.getSize; myobject.setEnabled(1); myobject.setToolTipText('My tip'); myobject.setOpaque(1); The class has been modified so that all jcontrol objects have a uipanel ancestor. This is to accommodate changes to the javacomponent.m function introduced in ML R2008b by TMW. The changes should be backwards compatible - tested with R2006a/R2008b.
【文件预览】:
jcontrolDemo.m
@jcontrol
----set.m(5KB)
----Contents.m(644B)
----setappdata.m(920B)
----private()
--------VisibleProperty.m(584B)
----close.m(513B)
----jcontrol.m(13KB)
----ancestor.m(271B)
----subsref.m(6KB)
----subsasgn.m(5KB)
----rmappdata.m(543B)
----isappdata.m(543B)
----getappdata.m(736B)
----get.m(3KB)
----delete.m(1KB)
----README.TXT(2KB)

网友评论