I think that my question is simple, but I've tried a lot to know the problem! � I hope that somebody can help me..
I am using NetBeans IDE 6.1. I have 2 swing JFrames, Window1 and Window2. The first one contains a button which supposes to open the other JFrame whenever it is clicked.
I have used the ActionListener, but the other window is not opened, nothing happens, and no error!
I have a very big code, but this is an example of what I need:
I put the code of Window1, because I didn't change anything in Window2 . Also, I didn't put the code of the interface design itself, just to make the code simpler.
What is wrong with my code? no window is opened! If I can do it in another way, let me know. I just want the window to be opened in anyway.. I've read many tutorials about this, but all of them are making both windows in the same class, not in separated classes as mine.. In my case, I have to separate them..