|
Java™ by example!
|
|
|
How do I add a JTable background image that does not scroll?
Make sure all your internal JTable components have the opaqueness property set to false. Setting the JTable opaque property to false won't work as the table is added to a JScrollPane. Extend the JScrollPane class and override the paint method to paint the image every time an event occurs where a repainting is necessary. Main.java:
Here's the image I used:

Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|