Right now I am trying to open a new JFrame as soon as I hit the corresponding button on my current active GUI.But somehow, the Frame won´t be displayed,just the titlebar without title and all the components. If I start the class/JFrame solely,it displays perfectly.Just in combination with the "main" GUI, I just won´t get the second GUI to display correctly.
Here´s what I got so far:
So THIS is the class/frame I want to call in my actionPerformed-method in my Main Class, called MyFrame(). Of course this class right here also has a actionPerformed()-method for its buttons and two other methods which are not important for navigation purposes.
Can anyone help?I don´t know,how to properly open this frame!?
What I tried so far is something like this inside the actionPerformed()-method of the MyFrame-class:
Pretty simple: Cause the main frame doesn´t have anything to do with the second frame I want to open ;)
Functionally that is ;)
I just want to keep these two frames pretty much non-depending on each other ;)
And I think, a simple dialog wouldn´t do the trick for me ;)
But if you got an easier idea,just fire it at me ;)
It is,sort of ;)
The additional frame adds new functions to the main frame ;)
And of course,the second frame does some calculating(better say parsing),which means,a normal user dialog wouldn´t be enough to do the trick,right?
Now,how can I get this stuff to work?
Thanks for your help so far ;)
I solved the problem already
Wasn´t too hard though ;)
Just like you suggested,I seperated the logic from my frame and just used the frame for displaying purposes.
And now,finally,the navigation works just like a machine ;)
Thanks to all of you