Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #486
| From | "hiwa" <hiwa@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: please help me out |
| Message-ID | <1166951395.452005.92040@n51g2000cwc.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1166892253.780027.179310@73g2000cwn.googlegroups.com> |
| Date | 2011-04-27 15:27 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
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){
...
}
}
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
please help me out "Praku" <praku@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: please help me out "hiwa" <hiwa@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
please help me out "Praku" <praku@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: please help me out "Paul Hamaker" <paul.hamaker@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
csiph-web