|
Java™ by example!
|
|
|
How do I add a background image to my JTextField?
How do I add a background image to my JTextField?
Make sure the opaqueness property of your JTextField component is false. You can then override the paintComponent method that draws the background image and calls super.paintComponent. Here's an example:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|