Sudden painful swelling of the knee indicates inflammation .This may be due to repeated minor trauma which may not give rise to pain during the event but initiated the condition .
Some times acute exacerbation of arthritis
results in effusion in synovial joints giving rise to the condition as described by you .
please consult orthopedic surgeon and start treatment . clinical check up and tests are necessary for proper diagnosis and treatment .
Wish your early recovery.