S
smart
Hello, Good Morning every one i am new to work with swings i am facing
problem with delete button.
In an application i kept a button Delete . For delete button i have
taken ShowConfirmDialog i.e YES_NO_OPTION.
When i press YES it is deleting record which is correct. But when i
press NO button it is deleting record which is not happen. I used for
delete query is like this
[ pstmtdel=con.prepareStatement("delete from ICLASS where
Sno='"Sno"'"); ]
[ pstmtdel.executeUpdate();]
And try with if condition also when i put query in if condition it's
showing an error .
Error is variable pstmtdel might not have been initialized
So, how can solve this one. Help me regarding this topic
Thanks
problem with delete button.
In an application i kept a button Delete . For delete button i have
taken ShowConfirmDialog i.e YES_NO_OPTION.
When i press YES it is deleting record which is correct. But when i
press NO button it is deleting record which is not happen. I used for
delete query is like this
[ pstmtdel=con.prepareStatement("delete from ICLASS where
Sno='"Sno"'"); ]
[ pstmtdel.executeUpdate();]
And try with if condition also when i put query in if condition it's
showing an error .
Error is variable pstmtdel might not have been initialized
So, how can solve this one. Help me regarding this topic
Thanks