Solved

transparent color

Posted on 1999-01-06
1
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

734 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