Re: Mutiple JFrames Problems
Quote:
what would i need to do to make it look like a new window.
Do you want to have two windows?
If you create a class that extends JFrame and that class adds some components and calls setVisible you will have a window displayed.
If the second class extends the first one and the first one extends JFrame, then you can create a window with it as above.
Re: Mutiple JFrames Problems
Quote:
Originally Posted by
Norm
Do you want to have two windows?
If the second class extends the first one and the first one extends JFrame, then you can create a window with it as above.
I don't understand what ur saying, but i want to know if instead of creating two windows if i can just use one and get the same effect by using inheritance
Re: Mutiple JFrames Problems
Quote:
i can just use one and get the same effect
What are the "effects" you are looking for with only one window?
Re: Mutiple JFrames Problems
I want continuous effect in my application rather that window poping up effect when i create a new JFrame
Re: Mutiple JFrames Problems
Do you mean you want to remove the currently displayed components in the window and replace them with a new set?
Re: Mutiple JFrames Problems
yes, but when the user logs out the original components and then redisplayed
Re: Mutiple JFrames Problems
As the state of your program changes, you should be able to change the components by removing them and adding others.
Re: Mutiple JFrames Problems
You should use CardLayout to store individual screens as game cards, then show one card at a time.
immutable objects