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.

What will be an ideal response?


Font myLook = new Font("Times New Roman", Font.ITALIC, 30);?greeting.setFont(headlineFont);

Computer Science & Information Technology

You might also like to view...

A(n) ___________________________________ is a company that offers Internet access to individuals, businesses, and smaller ISPs.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A way to navigate from one scene to another is to use the ____ button, which displays a list of scenes in the document that you can click in order to switch to the desired scene.

A. Navigation B. Locate Scene C. Go To D. Edit Scene

Computer Science & Information Technology

What are dynamic Web pages?

What will be an ideal response?

Computer Science & Information Technology

The list of versions will show the date and time of the version

Indicate whether the statement is true or false

Computer Science & Information Technology