dcsimg
JScrollPane and a background image
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Christian_Bartel
Posted On:   Tuesday, April 19, 2005 01:45 AM

Hi! Under http://www.jguru.com/faq/view.jsp?EID=9691http://www.jguru.com/faq/view.jsp?EID=9691 is a solution for displaying a background image in a swing component. This solution does not seem to work with a JScrollPane. I do always get a grey background. Depending on the time, when I call the super.paintComponent(); method, I see only my table (with a grey background) OR my background image infront of the table. What is the trick here? I tried to call a getViewport().setOpaque(false); but that didn't solved the problem either. After some hours of frustrating experiments, I hope someone here can help me out. Thanks! Greetings, Chri   More>>

Hi!



Under http://www.jguru.com/faq/view.jsp?EID=9691http://www.jguru.com/faq/view.jsp?EID=9691 is a solution for displaying a background image in a swing component.



This solution does not seem to work with a JScrollPane. I do always get a grey background. Depending on the time, when I call the super.paintComponent(); method, I see only my table (with a grey background) OR my background image infront of the table. What is the trick here?



I tried to call a getViewport().setOpaque(false); but that didn't solved the problem either. After some hours of frustrating experiments, I hope someone here can help me out.



Thanks!



Greetings,

Christian

   <<Less
About | Sitemap | Contact