Woi! I'm sure I replied to this earlier. And it was a long reply *sob* OK, from memory:
I am new to java programming
Welcome to Java!
and this is my first code.
Yeah right - as if.
The import java.awt.Dimension
Wait - I see some 'android' in your image. If you're compiling this for the Android platform, you know there's no Abstract Windowing Toolkit, right? Of course you don't - you're new to java programming. Why didn't you start with "Hello, World!"? Android uses the Dalvik VM which is not a JVM - you need classes from here:
Package Index | Android Developers
... unless you really do want to compile an application for a proper JVM, in which case you need to find out why your IDE isn't compiling your application with classes from the JDK.