Netbeans

From: A.Tamboer (a.tamboer_at_home.nl)
Date: 02/24/05


Date: Thu, 24 Feb 2005 11:32:06 +0100

I learn myself to understand Java and make as exercise in Netbeans 4.0 a
popup program. A start with Frame and add the popupMenu with items. With the
MousePressed I call "poupMenu.show(this, x,y)" and hope to see the popup
menu. But that doesn't happen. The frame window is on the screen but when I
press the mouse I see the next note;

"Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException:
parent is null". It looks like if "this" can not be found.

Thanks for help.

Arie Tamboer



Relevant Pages

  • Re: Netbeans
    ... >popup program. ... A start with Frame and add the popupMenu with items. ... It can also be another item within the parent, but the latter isn't set in ... you have to add the PopupMenu to the Frame. ...
    (comp.lang.java.help)
  • Re: NetBeans MVC support?
    ... controller technique to separate it all to easily have Frames talk to ... From messing around in NetBeans it doesn't seem ... allocate it within the current frame and call setVisible. ...
    (comp.lang.java.programmer)
  • Re: resize external frame in "SingleFrameApplication"?
    ... NetBeans IDE 6.0 and would like to be to control the size of the ... external frame that is displayed when the application is run. ... If you construct and display your own JFrame in the "traditional" ...
    (comp.lang.java.programmer)
  • Re: Newbie question re NetBeans and GUI appearance
    ... I have managed to complete the layout of my frame and all ... exactly like any other windows window on my computer. ... Run the application, I get a clunky, less nice appearance of the ... Presumably NetBeans is automatically doing ...
    (comp.lang.java.programmer)
  • Re: Newbie question re NetBeans and GUI appearance
    ... I have managed to complete the layout of my frame and all ... exactly like any other windows window on my computer. ... Run the application, I get a clunky, less nice appearance of the ... Presumably NetBeans is automatically doing ...
    (comp.lang.java.programmer)