Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Null Pointer Exception in a GUI application

 
Haani Naz
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Guys,

i would like to extend this question by asking something about my code.

i'm basically attempting to use extended JFrame (to understand how it differs) but i've run into a problem.

i decided to post the code so it makes more sense:





followed by:




This fails to work - i get run time errors. Can somebody please tell me why..? thanks.
 
Campbell Ritchie
Sheriff
Posts: 48445
56
  • Mark post as helpful
  • send pies
  • Report post to moderator
Damn! I split the thread incorrectly. Please keep reading here.
 
    Bookmark Topic Watch Topic
  • New Topic