Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
Pie
Posts: 49776
69
  • 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