I\'m working on a log in server & my JTextFields
aren\'t transparent when I set Opaque to false
.
My code:
//username
I tried with another option and it worked for me.
You can modify the property Background
of the textfield
. Select the option custom code in the Selection Box and paste new Color(0, 0, 0, 0)
in the txtField.setBackground
property.
Then just change the border property to No border
. and finally uncheck the opaque
checkbox.
Here a capture of my netbeans interface