Recommended reading: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Type: Posts; User: KevinWorkman
Recommended reading: Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
You're passing null into your PaintWindowText (methods should start with a lower-case letter, by the way). What did you expect to happen?
Recommended reading: Lesson: Performing Custom Painting...
So is your problem solved now?