Sauda��es,
Estou com um probleminha.
Tenho um JPG e estou tentando utilizando-o como "fundo" de meu applet,
porem meus controles (botoes - text ) nao est�o sendo exibidos, aparece
somente o fundo (jpg)
Para exibi-lo estou utilizando MediaTracker, conforme a seguir:
public class AppletEntrada extends JApplet {
MediaTracker tracker;
Image bg;
..
..
JLabel jLabelRazao = new JLabel();
JTextPane jTextPaneRazao = new JTextPane();
...
..
..
private void jbInit() throws Exception {
this.setSize(new Dimension(400,300));
this.getContentPane().setLayout(borderLayout1);
tracker = new MediaTracker(this);
bg =
Toolkit.getDefaultToolkit().createImage(getClass().getResource("fundo.jpg"))
;
tracker.addImage(bg, 0);
tracker.waitForAll();
..
public void paint(Graphics g) {
g.drawImage(bg, 0, 0, this);
}
Obrigado
Luiz Marcos Ferreira Ribeiro
[EMAIL PROTECTED]
--------------------------- LISTA SOUJAVA ---------------------------
http://www.soujava.org.br - Sociedade de Usu�rios Java da Sucesu-SP
[d�vidas mais comuns: http://www.soujava.org.br/faq.htm]
[para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
[regras da lista: http://www.soujava.org.br/regras.htm]
---------------------------------------------------------------------