subject

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

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:30, Prettygirlyaya
How is the brightness of oled of the diaplay is controled
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, uday50
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, herchellann302
To check whether your writing is clear , you can
Answers: 2
image
Computers and Technology, 24.06.2019 04:30, andrespacheco5888
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
You know the right 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
Mathematics, 24.03.2021 01:00
Konu
Mathematics, 24.03.2021 01:00
Konu
History, 24.03.2021 01:00
Konu
English, 24.03.2021 01:00