Q:

Drawing Glassy Buttons

I'm going to draw some sort of glassy buttons in java me (targeting devices with MIDP 2.0). 
An Example:
 
Actually I need to impelement Gradient and Bevel-Emboss effects in Java ME, do you have any opinion or "guideline" on how to implement this? 
EDIT: Now I know how to draw gradient background, but That is not sufficient. 
Is it possible to draw such glassy button in Java ME? 
I've worked with C# and I can draw these kinds of glassy buttons there, but I'm struggling on how to simulate something like these buttons in Java ME or at least something near to them, Note that I'm looking for a good guidance and help to move forward. 
Do I need to provide more information?  If so, please let me know. 
Thanks In advance. 

A:

You can do it by using an alpha gradient paint.  Heres an example:
Graphics2D g = (Graphics2D)screen.getGraphics();
g.setRenderingHint(RenderingHints. KEY_ANTIALIASING, RenderingHints. VALUE_ANTIALIAS_ON);
g.setFont(new Font("Serif", Font. BOLD, 30));
Color c1 = new Color(0,0,0,0);
Color c2 = new Color(0,0,0,100);
GradientPaint gradient = new GradientPaint(10,8,c1,10,40,c2,true);

g.setColor(Color. GREEN);
g.fillRect(0, 0, screen.width, screen.height);
g.setColor(Color. BLACK);
g.setPaint(gradient);
g.fillRoundRect(100, 100, 200, 50, 25, 25);
g.setPaint(Color. BLACK);
g.drawRoundRect(100, 100, 200, 50, 25, 25);
g.drawString("Hello World!",  118, 135);

it will look like this:

