please help me out



hi,

Thnx for reply can we keep any visualization as background to a
form?and in foreground textboxes ,buttons etc..please help me this is
urgent as i am working in software company they asked us to solve that
so plz help me out
hiwa wrote:
Praku wrote:
Hi,

I want to keep an animation to a frame in background and
labels,textboxes etc on foreground,for that what i have to do?
public class PrakuApplication{
JFrame frame;
AnimPanel ap;
JLabel label;
JTextArea textbox;

public PrakuApplication(){
frame = new JFrame();

ap = new AnimPanel();
ap.setLayout(.....);

label = new JLabel(.....);
textbox = new JTextArea();

ap.add(label);
ap.add(textbox);

frame.getContentPane(ap, BorderLayout.CENTER);
frame.setBounds(.....);
frame.setVisible(true);
}

public static void main(String[] args){
}
}

class AnimPanel extends JPanel{

public AnimPanel(){
// use javax.swing.Timer for running
// animation on this panel
...
}

public void paintComponent(Graphics g){
...
}
}

.