You need to put the time to wait in parenthesis, .Exist(2), so that the statement will wait for that time in seconds. If you leave this blank, QTP will wait for the default 20 seconds. So:
Code:
IF JavaWindow.(...).JavaButton("Accept").[b]Exist [/b]Than
(...)
End If
Code:
Should be
IF JavaWindow.(...).JavaButton("Accept").[b]Exist(2)[/b] Then
(...)
End If