Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    2,787

    Re: Switching between frames from a seperate class

    NullPointer makes sense in the first context, but you should just create one instance of each frame. Pass a reference of this JFrame to whatever you want to control it (the JMenu) and activate it...
  2. Replies
    4
    Views
    2,787

    Re: Switching between frames from a seperate class

    What errors? Please post them in their entirety. If you just have 2 windows, create both and have action listeners on the menu items themselves which activates the particular JFrame. If you have more...
Results 1 to 2 of 2