Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 1 The class JComponent is part of the package javax.swing. True False Q

ID: 3910966 • Letter: Q

Question

QUESTION 1

The class JComponent is part of the package javax.swing.

True

False

QUESTION 2

You can use the methods Background and Foreground to set the background and foreground color of a component.

True

False

QUESTION 3

When you click a JButton an event is created, known as an action event.

True

False

QUESTION 4

Unlike console application programs, when you compile a Java GUI application no .class file is produced.

True

False

QUESTION 5

It is impossible to make a GUI application from a frame.

True

False

QUESTION 6

In Java, extends is a reserved word.

True

False

QUESTION 7

If lengthL is a JTextField and c is a Container, then the statement c.add(lengthL); adds the text field to the content pane of a frame or other window.

True

False

QUESTION 8

The contents of a JTextField is a property of the object of type double.

True

False

QUESTION 9

A set method of the JLabel class first accesses the value of whatever the property of the label is and can then edit the value of this property.

True

False

QUESTION 10

The layout manager FlowLayout places components in the container's rows from left to right until no more items can be placed.

True

False

QUESTION 11

The class Container is included in the package javax.swing.

True

False

QUESTION 12

Frames use the init method in place of constructors to initialize various GUI components and data members.

True

False

QUESTION 13

The height and width of a frame are measured in pixels.

True

False

QUESTION 14

JLabels are used to get input and show output.

True

False

QUESTION 15

You must import the package javax.swing in order to use the methods in the class Font.

True

False

QUESTION 16

The class ActionListener contains one method, actionPerformed.

True

False

  

QUESTION 17

It is possible to terminate a GUI application by closing running frame.

True

False

Explanation / Answer

QUESTION 1

Answer

True

Explanation

The class Jcomponent is a part of the package javax.swing.

QUESTION 2

Answer

True

Explanation

The methods Background and Foreground to set the background and foreground color of a component.For setting the background we will use the setBackground() method and for setting the foreground we will use the setForeground() method.

QUESTION 3

Answer

False

Explanation

When an Jbutton is clicked an ActionListener interface is called and which also executs a abstract method actionPerformed(ActionEvent e).

QUESTION 4

Answer

False

Explanation

In case of executing JAVA GUI application it is taken as all together as a package.No individual class file is created.But the application may have any number of class files inside it.

QUESTION 5

Answer

False

Explanation

Yes it is possible to make a application from a frame.For making a GUI application atleast one frame is required.

QUESTION 6

Answer

True

Explanation

Yes extend is a reserved or keyword in a Java as it provides a particular meaning to the user.The keyword is used in case of inheritence.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote