asiavoices
Programmer
Hello all,
This has me stump....
I have an exception that I want caught in a catch block and when it's caught, it will call my dialog window (works fine except in this situation).
The error message I got was :
cannot resolve symbol...
new MsgDialog(this, "Error!", "My error message here"
^
Here's a bit of my code:
try
{
int numID = (Integer.parseInt(idField.getText()));
}
catch (NumberFormatException ex)
{
new MsgDialog(this, "Error!", "My error message here"
}
I don't get it .... Shouldn't it just do a new MsgDialog?
How come it can't resolve the "new" symbol?
Any help is greatly welcomed.
thanks,
Chris
This has me stump....
I have an exception that I want caught in a catch block and when it's caught, it will call my dialog window (works fine except in this situation).
The error message I got was :
cannot resolve symbol...
new MsgDialog(this, "Error!", "My error message here"
^
Here's a bit of my code:
try
{
int numID = (Integer.parseInt(idField.getText()));
}
catch (NumberFormatException ex)
{
new MsgDialog(this, "Error!", "My error message here"
}
I don't get it .... Shouldn't it just do a new MsgDialog?
How come it can't resolve the "new" symbol?
Any help is greatly welcomed.
thanks,
Chris