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...
Type: Posts; User: copeg
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...
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...