Skip to content

Commit 026ea99

Browse files
committed
Password fields: Add option to unmask input and add caps-lock warning
1 parent eeb1c1d commit 026ea99

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/main/java/org/scijava/ui/swing/widget/SwingTextWidget.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public void set(final WidgetModel model) {
103103
}
104104
else if (model.isStyle(TextWidget.PASSWORD_STYLE)) {
105105
textComponent = new JPasswordField("", columns);
106+
textComponent.putClientProperty(FlatClientProperties.STYLE, "showRevealButton: true; showCapsLock: true");
106107
}
107108
else {
108109
textComponent = new JTextField("", columns);

0 commit comments

Comments
 (0)