File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTextField" Watch "JTextField" New topic
Author

JTextField

joseph dela cruz
Ranch Hand

Joined: May 17, 2012
Posts: 38

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

Joined: Jun 09, 2003
Posts: 4632
> 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

Joined: May 17, 2012
Posts: 38

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextField