Making MATLAB Swing More

版本 1.5.0.0 (437.4 KB) 作者: Malcolm Lidierth
Import of Java Swing GUIs from Eclipse, NetBeans, IntelliJ etc
861.0 次下载
更新时间 2012/3/9

查看许可证

GImport supports the import of Java Swing-based GUIs. These can be designed by hand or by using one of the many free GUI designers such as those in Eclipse, NetBeans or IntelliJ IDEA.

If you find MATLAB GUIDE-designed GUIs limiting, GImport may be what you are looking for.

To import a GUI simply put your jar file on the MATLAB Java class path and provide an instance to the GImport constructor
g=GImport(MATLABContainer, mypackage.myclass());

MATLABContainer can be any MATLAB container e.g. a figure or uipanel.

The GImport class methods do the work as explained in the accompanying PDF documentation. This includes active layout management that causes the GUIs to resize in the same way as ‘normalized’ MATLAB figure components.

In addition, GImport supports Swing JFrames as containers:
g=GImport(JFrame, mypackage.myclass());
A GXJFrame function for thread-safe creation of JFrames is included.

The GImport class provide easy-to-use methods for thread-safe modification of the GUIs on-the-fly, MATLAB callback setup etc. together with support for Drag & Drop.

An up-to-date copy of the jcontrol class is from Project Waterloo is included. Older versions of this class should be removed.

Part of Project Waterloo from King's College London - see http://sigtool.sourceforge.net/

引用格式

Malcolm Lidierth (2025). Making MATLAB Swing More (https://www.mathworks.com/matlabcentral/fileexchange/34235-making-matlab-swing-more), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GImport/GImport/GImport/

GImport/GImport/GImport/@jcontrol/

版本 已发布 发行说明
1.5.0.0

Add support for externally created GUIs with no MATLAB container

1.2.0.0

Add GXJFrame function and support for JFrames

1.1.0.0

Fix hide before drawnow/layout.

1.0.0.0