That code seems to work fine for me. Are you sure you're recompiling? Are you sure you're running the correct project and file? Try compiling and running from the command prompt.
Type: Posts; User: KevinWorkman
That code seems to work fine for me. Are you sure you're recompiling? Are you sure you're running the correct project and file? Try compiling and running from the command prompt.
You never add a TextPanel to your JFrame. You're showing a blank JFrame.