i have two jframe running but i want to keep one jframe in the background
but not destroy. it will only appear on button click and will not use the memory resource when not in use.cannot use cardlayout
Printable View
i have two jframe running but i want to keep one jframe in the background
but not destroy. it will only appear on button click and will not use the memory resource when not in use.cannot use cardlayout
?Code:frame.setVisible(false)
cannot use frame.setVisible();
is there any other way
think that when one frame is there the other frame does not exist.it is called only on button click
OK so you are making very little sense. First you say you have two Frames running and want to hide the other. Now you say you only have one Frame running (the other one does not exist). So why do you need to hide a Frame that does not exist?
You'll have to be more accurate in your descriptions or post the relevant code that you are struggling with.
what i am trying to say is that when i am working with one panel i dont want the other panel to occupy my memory resource
or be shown on the frame .it will be only loaded when called....
How much memory is it occupying? Usually swapping panels is done with a CardLayout.