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:

Dividends

Disbursements from a corporation to individuals holding its stock, serving as their share of the earnings.

Ending Equity

The value of an owner's interest in a property or a business at the end of an accounting period after all debts have been subtracted.

Retained Earnings

A portion of company profits not paid out as dividends but reinvested in the business, used for debt payment, or saved as cash reserves.

Profits

The financial gain obtained when the revenue generated from business activities exceeds the expenses, costs, and taxes needed to maintain the operation.

Related Questions