Slick transparency

I’m trying to make a g.drawRect() 50% transparent. How can i achieve this?

A friend just showed me:


new Color(R(red), G(green), B(blue], A(alpha));