Package jmri.util.swing
Class TransparencyUtils
java.lang.Object
jmri.util.swing.TransparencyUtils
Some utilities to turn a recursively component opacity and background transparent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetOpacityRec(JComponent jcomp) Recursively set opacity of a component and its sub componentsstatic voidsetOpacityRec(JComponent jcomp, boolean transparency) static voidRecursively set a component and its sub components backgroud transparent
-
Constructor Details
-
TransparencyUtils
public TransparencyUtils()
-
-
Method Details
-
setOpacityRec
Recursively set opacity of a component and its sub components- Parameters:
jcomp- The component on which to set opacity
-
setOpacityRec
-
setTransparentBackgroundRec
Recursively set a component and its sub components backgroud transparent- Parameters:
jcomp- The component on which to set a transparent background
-