Create a password entry dialog for entering a password that is visibly hidden. Java must be enabled for this function to work properly.
It has only been tested on the Windows platform in MATLAB R2008a. It should work in R2007a or later.
The password box is created using the Java Swing component JPasswordField.
NOTE: The password is only visibly hidden and can be accessed in memory.
Jesse Lai (2023). passwordEntryDialog (https://www.mathworks.com/matlabcentral/fileexchange/19729-passwordentrydialog), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: login, UICOMPONENT - expands uicontrol to all Java classes
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Updated to remove requirement for uicomponent function written by Yair Altman. Now, the Java components are created manually and the undocumented feature javacomponent is used.