Skip to content

Make Me Engineer

  • html
  • java
  • php
  • javascript
  • c#
  • math

jpasswordfield

Why getText() in JPasswordField was deprecated?

When calling getText you get a String (immutable object) that may not be changed (except reflection) and so the password stays in the memory until garbage collected. When calling getPassword you get a char array that may be modified, so the password will really not stay in memory.

Categories java Tags java, jpasswordfield, swing Leave a comment

Generate random alphanumeric string into password field

If you want to add text to password mode textfield then you need to write. txtPassword.Attributes.Add(“value”, finalString.ToString());

Categories asp.net Tags alphanumeric, asp.net, auto-generate, jpasswordfield, textbox Leave a comment
  • Get current username in C++ on Windows
  • Get mime type of external file using cURL and php
  • Javascript function to Rotate a base 64 image by X degrees and return new base64
  • How to use libraries compiled with MingW in MSVC?
  • Alternative for mysql_num_rows using PDO
  • Twoway-bind view’s DependencyProperty to viewmodel’s property?
  • Maximum Call Stack Size Exceeded During a setTimeout Call
  • WebClient does not support concurrent I/O operations
  • What’s the performance cost of “include” in PHP?
  • Pin Emacs buffers to windows (for cscope)
© 2021 w3toppers.com