Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9044
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: NullPointerExceptio Occurred During Dispatch Event
 
Similar Threads
putting images in java applet using swing, which is coded in netbeans IDE.
I found that inner classes cause problem run my jar file (no problem making the jar or compiling),
Remove comma in the JSpinner
urgent:Problem with action event of JButton
What's wrong here!