I\'m trying to paint a rectangle on my application in a red shade but I need to make it sort of transparent so that the component under it will still show. However I still want
int alpha = 127; // 50% transparent Color myColour = new Color(255, value, value, alpha);
See the Color constructors that take 4 arguments (of either int or float) for further details.
int
float