How to make Swing JTextField look like AWT TextField?
Hi, I want to ask more here.. :D
I just realized that the JTextField and TextField appearance is different. It's same in vista windows theme. I noticed this today when I opened it in XP theme and windows classic theme.
The Password field is the TextField, it seems sunk down.
(screenshot at the attachment)
I tried to set the foreground and background to null but there's no change, also there's no set border attribute for TextField.
The reason I use TextField not JPasswordField for the password field is because I need to get the password content and send it to the server, server is the one that authenticating it not me.
I can't use JTextField because it doesn't have setEchoChar method to hide the text.
Can someone help me to make the TextField looks like JTextField?
Or does someone know other way to retrieve text from JPasswordField without using deprecated getText method?
I can only get and pass the password to char, when I tried to pass to the string, the result is garbled.