Re: please help me out
- From: "hiwa" <HGA03630@xxxxxxxxxxx>
- Date: 24 Dec 2006 01:09:55 -0800
Praku wrote:
Hi,public class PrakuApplication{
I want to keep an animation to a frame in background and
labels,textboxes etc on foreground,for that what i have to do?
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){
...
}
}
.
- Follow-Ups:
- please help me out
- From: Praku
- please help me out
- References:
- please help me out
- From: Praku
- please help me out
- Prev by Date: Re: Setting table row height according the renderer component
- Next by Date: Re: Setting table row height according the renderer component
- Previous by thread: please help me out
- Next by thread: please help me out
- Index(es):
Relevant Pages
|