Opaque and MViewPane

User c23c5e9da4

09-11-2006 18:04:09

Is there a way to set the MolBg to not be opaque? So the color behind the component are shown through? This is an issue on OSX where they use gradients to paint table header cells.

ChemAxon 7c2d26e5cf

13-11-2006 13:50:55

You can set the transparency of the color by the alpha value. (You can read more about it in the apidoc of Color. ) Marvin accepts these colors.


e.g.:
Code:
viewpanel.setMolbg(new java.awt.Color((float)1.0,(float)1.0,(float)1.0,(float)0.25));





By the way, the canvas components in Marvin are not opaque. But their parent components (View- and SketchPane) are completely opaque.