Filters
Question type

Study Flashcards

An object that is interested in an event is called a source.

Correct Answer

verifed

verified

import javax.swing.*; public class JFrameLook {     public static void main(String[] args)     {         ----Code here----         JFrame myFrame = new JFrame("Look and Feel");         myFrame.setSize(300, 120);         myFrame.setVisible(true);      } } In the indicated line above, write the statement to set the JFrame 's look and feel using the setDefaultLookAndFeelDecorated() method.

Correct Answer

verifed

verified

JFrame.set...

View Answer

Which method do you use to assign a font object to a JLabel?


A) setFont()
B) fontLabel()
C) assignFont()
D) JLabel.font()

Correct Answer

verifed

verified

What are some of the decisions you must make when extending a JFrame ?

Correct Answer

verifed

verified

When you extend a JFrame to create a new...

View Answer

How do you change the font of a JLabel ?

Correct Answer

verifed

verified

To give a JLabel object a new font, you ...

View Answer

A ____ is a component that combines a button or an editable field and a drop-down list.


A) JCheckBox
B) JComboBox
C) JButton
D) JTextBox

Correct Answer

verifed

verified

Showing 61 - 66 of 66

Related Exams

Show Answer