problem in appearance of otherbuttons, the selected colour and label
hi guys
when I have runned this program in an applet application
only the last button which is appear as 9 appeared
only the standard colour has appeared for me
observeing I used these objects
pane.setBackground(java.awt.Color.red);
setBackground(Color.white);}
and the Label has not appeared in the application
I would be thankfull of anyone that help me
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import javax.swing.*;
public class Applet1 extends JApplet {
public void init() {
setBackground(Color.yellow);
JLabel hellolabel=new JLabel("google");
hellolabel.setToolTipText("is an engine search ");
java.awt.Container contentPane=getContentPane();
contentPane.setBackground(java.awt.Color.green);
contentPane.add(hellolabel);
contentPane.add(new Label("Text string"));
contentPane.add( hellolabel );
contentPane.add(new Label("\n"+"Text string "+"/t"));
contentPane.add(new Label("Text "+" /t "));
for(int i=0;i<10;i++){
JButton ok=new JButton( "" +i );
Container pane=getContentPane();
pane.add(ok);
pane.setBackground(java.awt.Color.red);
setBackground(Color.white);}
setVisible(true);}
public static void main (String [] args){
Applet1 van=new Applet1();
}}

