• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTextField

 
Ranch Hand
Posts: 38
Oracle Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4632
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Oracle Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic