Skip to content

Replace Text-IO password masking with Swing JPasswordField #278

@frankgiordano

Description

@frankgiordano

When using custom terminal colors, masked password input via Text-IO (withInputMasking(true)) renders incorrectly in the SwingTextTerminal. After deleting characters, the masked * characters repaint using the default foreground color (black) instead of the configured input color. Normal input rendering is unaffected.

This appears to be a limitation or repaint issue within Text-IO’s masked input handling rather than an application issue.

Propose Change

Password entry to use a Swing JPasswordField dialog instead of Text-IO masking. The dialog is parented to the main application window so it appears centered within the terminal frame.

Result

  • Consistent password masking regardless of terminal color theme
  • Avoids the Text-IO masked input repaint issue
  • No impact to existing terminal input behavior

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions