Solved

transparent color

Posted on 1999-01-06
1
447 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
Comment Utility
>> 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

743 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

17 Experts available now in Live!

Get 1:1 Help Now