User authentication in matlab GUI
조회 수: 2 (최근 30일)
이전 댓글 표시
dans un GUI matlab d'authentification (login et mot de passe) comment peut je créer le champ de mot de passe (quand l'utilisateur fait le saisie de mot de passe les caractére ne s'affiche pas) merci d'avance de me repondre
댓글 수: 0
채택된 답변
Romain
2014년 5월 22일
Des sujet en parle déjà : http://www.mathworks.com/matlabcentral/answers/20400-encryption-of-password
Sinon, j'ai aussi trouver ce script qui permet de faire ça :
function passwordDemo
f = figure;
pwd = javax.swing.JPasswordField;
[hComp,hContainer]= javacomponent(pwd,[100,100,200,20],f);
set(hComp,'ActionPerformedCallback',@passwordEntered);
function passwordEntered(varargin)
disp(['The password entered was ', char(hComp.getText)])
end %passwordEntered
end %passwordDemo
Si cela peut aider.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!