Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextField

 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi how can i mask the JTextfield in the GUI editor im using netbeans and i dont want to use JPasswordfield for registering my password and updating my password in java and oracle JDBC
since it encrypts the string when rs.UpdateString = txtPass.getPassword().toString(); i was thinking that updateString = getText() will be better all i have to do is mask the textfield but i cant find a way to mask it.

another question is:
is there a character variable in ORACLE jdbc sql? all i see is updateCharStreamer but i dont know how to use it help me plsss
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> since it encrypts the string when rs.UpdateString = txtPass.getPassword().toString();

encrypts? are you sure?

instead try
rs.UpdateString = new String(txtPass.getPassword());
 
joseph dela cruz
Ranch Hand
Posts: 38
Chrome Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHOA thanks man but i would love to ask if EX_ID , P_ID, S_ID etc. is a good practice in naming db columns? or ID, PASS, USER, ID, ID etc. is good enough. because i am having problems in juggling char arrays i am trying to remove EX_ and post it in my column but it only posts the first letter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic