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

Question 1 Java programmers use the ____________ to create GUI applications. Thi

ID: 3845003 • Letter: Q

Question

Question 1

Java programmers use the ____________ to create GUI applications. This class includes the Swing, and AWT frameworks.

Webx

Java Foundation Classs

GuiX

JavaG

10 points

Question 2

An _______    is an action that taks place within a program, such as the clicking of a button.

10 points

Question 3

Finish this line of code that inherits from JFrame.

public class SimpleWindow _ JFrame.

10 points

Question 4

Match the Swing class to the description

JLabel

JButton

JTextField

JPanel

An area that can display text

An area for the user to enter data

An object that can hold other objects.

An object that is usually clicked.

10 points

Question 5

This method places an object on a JPanel or JFrame is called......................?

10 points

Question 6

This class is used to respond to the button click event is called...................?

10 points

Question 7

This method of Java's JTextBox retrieves the contents of the Text property.

getText()

Text()

textValue()

toString()

10 points

Question 8

This method of the ActionEvent object allows you to determine which object fired an event is called............?

10 points

Question 9

This is Java's default layout manager.

GridLayout

BorderLayout

CardLayout

FlowLayout

10 points

Question 10

This object presents a series of choices to the user for selection, but allows only one choice. is called.........?

Webx

Java Foundation Classs

GuiX

JavaG

Explanation / Answer

Answer -6     When the user clicks a button . The result is that an actionPerformed message is sent to all action listeners that are registered on the relevant component.

Declare an event handler class and specify that the class either implements an ActionListener interface or extends a class that implements an ActionListener interface. For example:

public class MyClass implements ActionListener {

Answer->7   getText() method of Java's JTextBox retrieves the contents of the Text property.

Answer -> 2   event action takes place within a program, such as the clicking of a button.

Answer->1    java foundation class

Answer-> 9 The Window, Frame and Dialog classes use a border layout as their default layout.

Answer-> 5 add method places an object on a JPanel or JFrame .

Answer->3

Answer->8

The actionPerformed() method is invoked automatically whenever you click on the registered component.

Answer->10 radio button object presents a series of choices to the user for selection, but allows only one choice.

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