This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there a transparent version of the JScrollPanel? I have been using components (i.e. JTextArea, JLabel...) they can be made transparent by using setOpaque(false). It wont working on a JScrollPanel, any suggestions? Thanks all Cardwell
Joined: Aug 16, 2001
Just for everyone's info...JScrollPane is lightweight and can be set transparent by setOpaque(false), but you must also set the veiw port to opaque! scrollpane.getViewport().setOpaque(false)... Cardwell
I have set other componets to opaque(false) and I never see a change. What do you mean by transparent. Can you see through the JFrame or JButton or whatever? Like I said, I never notice a diffrence in the components.
When using most swing components, you can make them transparent in that you can see the component that they are on top of's back ground. For example, I place an image on a Frame, I then place a JScrollPane on top of it, if I set the opaque as false, i then can see the image through it...Does that make since??? Greenest horn Cardwell