The answer is in the first line of the stack trace:
genderText is declared but is never initialized. It is referenced in the ActionListener (text5 = genderText.getText()).
At runtime genderText has the value null so this is evaluated as null.getText().
Hence the null pointer exception.
As a separate issue it is recommended that you explicitly start a Swing application in the Event Dispatch Thread: