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 NullPointerExceptio Occurred During Dispatch Event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "NullPointerExceptio Occurred During Dispatch Event" Watch "NullPointerExceptio Occurred During Dispatch Event" New topic
Author

NullPointerExceptio Occurred During Dispatch Event

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi,
I am using JDk1.1.7B. It is running fine on almost all browsers and different OS system.But sometimes on Opera Browser or Netscape 4.08, it is giving this error when I click the button:
java.lang.NullPointerException
at k_main.action
at java/awt/Component.handleEvent(Component.java)
at java/awt/Component.postEvent(Component.java)
at java/awt/Component.dispatchEventImpl(Component.java)
at java/awt/Component.dispatchEvent(Component.java)
at java/awt/EventDispatchThread.run(EventDispatchThread.java)
Please let me know what should I do?
Thanks
Angela
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
Why don't you show us the code for the button that is causing this error. Seems to have both 1.0 type event handling mixed with 1.1 type event handling and the two types don't mix.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerExceptio Occurred During Dispatch Event
 
Similar Threads
I found that inner classes cause problem run my jar file (no problem making the jar or compiling),
urgent:Problem with action event of JButton
What's wrong here!
putting images in java applet using swing, which is coded in netbeans IDE.
Remove comma in the JSpinner