Hi! How can I print the result of this program? It doesnt show anything, but the code is succesfully compiled.
package tema6;
import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Checkbox;
import java.awt.CheckboxGroup;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Label;
import java.awt.Panel;
import java.awt.TextArea;
import static java.awt.TextArea.SCROLLBARS_BOTH;
import static java.awt.TextArea.SCROLLBARS_NONE;
import static java.awt.TextArea.SCROLLBARS_VERTICAL_ONLY;
import java.awt.TextField;
public class Lab61 extends Applet {
public void init() {
TextArea editzone=new TextArea("Astazi \n este\n duminica?", 5, 10, SCROLLBARS_BOTH);
editzone.setEditable(true);
editzone.setBackground(Color.green);
editzone.setForeground(Color.black);
editzone.setFont(new Font("Papyrus",Font.BOLD,20));
add(editzone);
Button a=new Button("OK");
a.setFont(new Font("Magneto",Font.BOLD,12));
a.setBackground(Color.red);
a.setForeground(Color.black);
add(a);
Panel option=new Panel();
CheckboxGroup chgroup=new CheckboxGroup();
option.add(new Checkbox("BUNA", false, chgroup));
option.add(new Checkbox("SALUT",false,chgroup));
option.add(new Checkbox("LA REVEDERE",false,chgroup));
option.setBackground(Color.blue);
option.setFont(new Font("Chiller", Font.BOLD, 14));
option.setForeground(Color.pink);
add(option, BorderLayout.EAST);
}
public static void main(String[] args) {
}
}