如何在半透明度/透明度的applet中绘制填充矩形?
对.
void foo(Graphics g) { g.setColor(new Color(.3f, .4f, .5f, .6f); g.fillRect(50, 50, 100, 100); }