Exam 14: Introduction to Swing Components

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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

(Multiple Choice)
5.0/5
(38)

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

(True/False)
4.9/5
(46)

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

(Essay)
4.8/5
(26)

How do you change the font of a JLabel ?

(Essay)
4.8/5
(38)

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.

(Essay)
4.9/5
(29)

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

(Multiple Choice)
4.8/5
(42)
Showing 61 - 66 of 66
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)