Examlex

Solved

Import Javax.swing.*; Import Java.awt.*;

question 78

Essay

import javax.swing.*;
import java.awt.*;
public class JFrame4
{
   public static void main(String[] args)
   {
      final int FRAME_WIDTH = 250;
      final int FRAME_HEIGHT = 100;
      -----Code here-----
      JFrame aFrame = new JFrame("Fourth frame");
      aFrame.setSize(FRAME_WIDTH, FRAME_HEIGHT);      
      aFrame.setVisible(true);
      aFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      JLabel greeting = new JLabel("Good day");
      -----Code here-----
      aFrame.add(greeting);
   }
}
In the first indicated line, write the statement to create a Font object named myLook with a typeface of Times New Roman, italic, and 30-point size. In the second indicated line, create the statement to apply myLook to the greeting JLabel .


Definitions:

Waves

are disturbances or variations that travel through a medium, such as air, water, or vacuum, transferring energy from one point to another without permanent displacement of the particles of the medium.

Auditory Receptors

Specialized cells located in the inner ear that convert sound waves into electrical signals, which are interpreted by the brain as sound.

Cochlea

A spiral-shaped cavity of the inner ear that is primarily responsible for converting sound vibrations into nerve impulses.

Amplitude

In physics, this term describes the maximum extent of a vibration or oscillation, measured from the position of equilibrium.

Related Questions