How To Set the Transparency of a JavaCompon​ent(jRange​Slider)

I want to overlay two jRangeSliders, disabling the first one and setting the second transparent so that both are visible.
So far, I've played around with the java.awt.Color() values for quite a bit, but the transparency never works well.
slider.setBackground(java.awt.Color(1, 1, 1, 0.1))
does very scary things to my code, and I have no idea why additional buttons and badly placed sliders are randomly generated from it.
How do I make a slider's background transparent?

1 Kommentar

No transparency works perfectly fine, and I've tried multiple Color() parameter formats. The only problem now is that when I set alpha to 0, the interface bugs out like crazy.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2019a

Gefragt:

am 29 Mai 2019

Kommentiert:

am 29 Mai 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by