I ahve an applet in which I have a dialog which has two buttons. I just want to go to another dialog by clicking a button.When in the action I say

if(arg.equals("Next") {

AnotherDialog f = AnotherDialog(this,"Next");

f.show();

}

It is giving a compiler error.

Can you help?

Thanks in Advance,

bsat