单项选择题

在init()函数里得到applet窗口的宽度的语句是( )。

A) int width=this.getY();
B) int width=getSize();
C) int width=getSize().w;
D) int width=getWidth();