Hi guys,

I've encountered a strange Exception in both the Nokia7210 SDK Emulator v1.0 and the actual Nokia7210 device.

When I attempt to draw a String with an anchor of "Graphics.VCENTER | Graphics.HCENTER" an Exception is thrown: "java.lang.IllegalArgumentException Graphic: Invalid anchor. Anchor is: 3"

However the Series40 MIDP SDK BETA 0.3 executes the code with no errors and it draws the string at the appropriate position on the screen.

Have anyone experienced this error?

Here is my code:

private Font font = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_MEDIUM);

protected void paint(Graphics g){

// Clear the screen
g.fillRect(0, 0, getWidth(), getHeight());

// Write "please wait" on to the screen.
g.drawString("Please wait!", getWidth() / 2, getHeight() / 2, g.VCENTER | g.HCENTER);