Results 1 to 2 of 2
  1. #1
    talon is offline Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0

    Default Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException with jcombox :S

    Hi I'm having a lot of trouble with a program I'm doing for some coursework.
    At the moment my main problems are :
    1. The program wont let me use the savep button which calls the savepart() method
    as it throws the error above.
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at Menu.savepart(Menu.java:511)
    at Menu.actionPerformed(Menu.java:435)
    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    2. I can't seem to push the mypart vector into a Jlist as well because of the same error. I want to be able to select multiple participants then write those into a relationships vector.

    Yes I know a database would be better to do this all in ... but its a programming course
    Any help would be greatly appreciated I've attached the .java file if that helps thanks!
    Attached Files Attached Files

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    We're not mind readers here. To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

    Note: The first 'S' stands for Short.

    db

Similar Threads

  1. Replies: 0
    Last Post: 05-28-2010, 02:47 PM
  2. Replies: 3
    Last Post: 04-30-2010, 07:44 PM
  3. Replies: 4
    Last Post: 04-01-2010, 10:34 PM
  4. Replies: 5
    Last Post: 08-26-2009, 11:37 AM
  5. Replies: 12
    Last Post: 10-05-2008, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •