Recommendations for MATLAB Apps Using Java and ActiveX
Background
The undocumented JavaFrame
property and javacomponent
function, as well as the actxcontrol
function, are capabilities that rely on third-party technologies (Java Swing and Microsoft COM, respectively), which over the years, have become legacy UI frameworks. MathWorks has been transitioning its UI building infrastructure to web technologies in response to customer requests for new web-based sharing workflows (MATLAB Web Apps and MATLAB Drive™). With this transition, maintaining support for javacomponent
, JavaFrame
, and actxcontrol
limits our ability to further evolve the MATLAB® UI building platform to support the needs of our customers. As a result, these capabilities will be removed in a future release.
Recommendations
Over the past several releases, documented MATLAB functions and features have been added to replace the reliance on these undocumented and legacy features. The following table lists some of the most common features you can now access in MATLAB using documented functions. Users are encouraged to update their code to use these documented alternatives.
If you have additional javacomponent
or JavaFrame
usage scenarios that are not shown here, please complete our online surveys to help us better understand your needs. The surveys each take approximately 1–2 minutes to finish.
Documented MATLAB Recommendations
UI Capability |
Recommendation | Introduced In |
Works With |
---|---|---|---|
Custom components |
|
R2020b |
|
Custom app icon |
|
R2020b |
|
Modal figures |
|
R2020b |
|
UI table row/column/cell styling |
|
R2019b |
|
Video embedding (locally-hosted only) |
|
R2019b |
|
HTML markup |
|
R2019b |
|
UI table sorting |
|
R2019a |
|
Image icons and branding |
|
R2019a |
|
Layout managers |
|
R2018b |
|
Scrollable containers |
Scrollable property on figures and containers |
R2018b |
|
Menu tooltips |
Tooltip property on UI menus |
R2018b |
|
Date pickers |
|
R2018a |
|
Figure maximize or minimize |
|
R2018a |
|
Trees |
|
R2017b |
|
Spinners |
|
R2016a |
|
Editable comboboxes |
|
R2016a |
|
UI tabs |
|
R2014b |