Java Programming Problem
Let me set up the background.
I have a frame, which contains a layeredpanel.
There is a panel at the top of the layeredpanel, on a top layer so that it stays above everything else.
I have other panels that I want to "scroll" in and out at different times. I want these to be seperate panels that I can move not by dragging, but when certain events happen they move in and out.
I tried something like.
for (int i = 0; i < 450; i++)
panel.setLocation(panel.getX(),450 + i);
The end result is what I want, the panel off the screen. However, it happens so fast that it is there, and then gone, and you see nothing happen.
Is there a way to do this so that you can see the panel more slowly move out of the way?
I have a frame, which contains a layeredpanel.
There is a panel at the top of the layeredpanel, on a top layer so that it stays above everything else.
I have other panels that I want to "scroll" in and out at different times. I want these to be seperate panels that I can move not by dragging, but when certain events happen they move in and out.
I tried something like.
for (int i = 0; i < 450; i++)
panel.setLocation(panel.getX(),450 + i);
The end result is what I want, the panel off the screen. However, it happens so fast that it is there, and then gone, and you see nothing happen.
Is there a way to do this so that you can see the panel more slowly move out of the way?
