Results 1 to 4 of 4
- 05-31-2010, 07:29 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 4
- Rep Power
- 0
Transarent background over heavyweight components
I've got a problem. In LayeredPane I have 2 components: heavyweight coponent and JComponent(or any other what I could draw text in) that is placed above the first one. I'd like JComponent to have transparent background, but it has black background. Heavyweight coponent is a component that renders video and JComponent is component what I draw text in. This text should be printed with transparent background.
I tried to use GlassPane but glass content of glassPane was displayed above lightweight components and below heavyweight component.
Is there possibility to draw text above heavyweight coponent (Canvas)?
ps. I can't overload paint method because I got object of class HeavyComponent that is subclass of Canvas.
- 05-31-2010, 08:20 PM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
-
Multiple cross-posts. See: Swing - Component with transparent background above heavyweight component
To the original poster, welcome to the forum, and I hope your question gets answered, but I do request that if you cross-post a question you provide links to the other cross-posts. Nobody likes duplicating work that's already been done.
For more information on why this is bad, please see this link: JavaRanch - Be Forthright When Cross Posting To Other Sites
Thanks for your cooperation.
- 05-31-2010, 09:14 PM #4
Member
- Join Date
- Apr 2010
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
How to Run a .exe in background???
By jazz2k8 in forum New To JavaReplies: 9Last Post: 01-21-2011, 11:27 AM -
BackGround JRadioButton
By antonello12 in forum AWT / SwingReplies: 1Last Post: 10-10-2009, 06:33 AM -
Background image
By leiferouis in forum New To JavaReplies: 9Last Post: 03-08-2009, 05:49 PM -
ImageIcon background
By Yannick in forum New To JavaReplies: 11Last Post: 02-12-2009, 04:13 PM -
BackGround & ForeGround
By hungleon88 in forum Advanced JavaReplies: 3Last Post: 08-31-2008, 07:20 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks