File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Null Pointer Exception in a GUI application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Null Pointer Exception in a GUI application

Haani Naz
Greenhorn

Joined: May 30, 2010
Posts: 23
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

Joined: Oct 13, 2005
Posts: 32830
    
    4
Damn! I split the thread incorrectly. Please keep reading here.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Null Pointer Exception in a GUI application
 
Similar Threads
AWT-EventQueue-0" - need Help
Components Placement
how to center this button 1
JTabbedPane with Keyevents
JList selection to int not working