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 18:30, erjalinalii
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
image
Computers and Technology, 23.06.2019 22:00, elijah1090
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
image
Computers and Technology, 24.06.2019 00:20, danielmartinez024m
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
image
Computers and Technology, 24.06.2019 00:50, anthonycraig0205
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
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, 09.11.2021 07:00
Konu
Mathematics, 09.11.2021 07:00
Konu
Mathematics, 09.11.2021 07:10
Konu
Mathematics, 09.11.2021 07:10