Computers and Technology
Computers and Technology, 13.04.2020 12:27, mj200442

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) {
}
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, terriblexsiren
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, micahpauleen748
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, kreshnikolloma
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, juliajordan427
Best laptops for college [$100-$500 range]?
Answers: 2
Do you know the correct answer?
Hi! How can I print the result of this program? It doesnt show anything, but the code is succesfully...

Questions in other subjects:

Konu
Biology, 21.10.2020 21:01