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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Chloe is building a kiosk-based excel application. she wants to make some modifications to the screen elements in order to keep users from being distracted by parts of the application that are irrelevant to her application. she turns to henry for guidance as she knows he built a similar solution earlier this year.chloe has decided to hide the worksheet gridlines and the vertical scroll bar. what does henry tell her to use to do this? a) screen elements dialog boxb) display options dialog boxc) customization dialog boxd) excel options dialog box
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words.size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words.size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
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
Questions on the website: 13722361