Solved

transparent color

Posted on 1999-01-06
1
448 Views
Last Modified: 2010-05-18
I'd like to create a transparent DefaultTreeCellRenderer. (only the background would be transparent, not the text).
Do you know how to make a transparent color.
0
Comment
Question by:stef5
1 Comment
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 1230523
>> Do you know how to make a transparent color.
you don't need transparent color, you need transparent JComponent (that is TreeCellRenderer).
You probably need to add this line renderer.setOpaque(false) ...
if this does not work you'll probably have to extend DefaultTreeCellRenderer (make your own cell renderer ...)


" JComponent
 public void setOpaque(boolean isOpaque)
If true the components background will be filled with the background color. Otherwise, the background is transparent, and whatever is underneath will show through. "

hope this helps
  heyhey



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
micro services vs rest web services 16 87
eclipse java  build path 6 45
how to add new optional parameter to JSP 1 29
MySqlDump not dumping triggers 1 19
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now