gpt4 book ai didi

密码的eclipse字段编辑器

转载 作者:行者123 更新时间:2023-12-04 00:43:26 25 4
gpt4 key购买 nike

我有一个首选项页面,其中包含一些 StringFieldEditor 来保存不同的值。其中之一用于密码。我希望密码显示为星号或其他一些特殊字符。我必须只使用 org.eclipse.jface.preference.FieldEditor 或其任何子类。请建议我如何实现这一目标。

最佳答案

password = new StringFieldEditor("passwd", "Password", getFieldEditorParent()) {

@Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
super.doFillIntoGrid(parent, numColumns);

getTextControl().setEchoChar('*');
}

};

关于密码的eclipse字段编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15986262/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com