Examlex

Solved

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

question 8

Essay

import javax.swing.*;
import java.awt.*;
public class JDemoBorderLayout extends JFrame
{
private JButton nb = new JButton("North Button");
private JButton sb = new JButton("South Button");
private JButton eb = new JButton("East Button");
private JButton wb = new JButton("West Button");
private JButton cb = new JButton("Center Button");
private Container con = getContentPane();
public JDemoBorderLayout()
{
con.setLayout(new BorderLayout());
_________________________________________
_________________________________________
_________________________________________
_________________________________________
_________________________________________
setSize(400, 150);
}
public static void main(String[] args)
{
JDemoBorderLayout frame = new JDemoBorderLayout();
frame.setVisible(true);
}
}
Using the above code, write the statements in the shaded lines provided to add components to each of the five regions (north, south, east, west and center).


Definitions:

Statement of Cash Flows

A financial statement that provides aggregate data regarding all cash inflows a company receives from its ongoing operations and external investment sources, as well as all cash outflows that pay for business activities and investments during a given period.

Investment

The act of allocating resources, usually money, with the expectation of generating an income or profit.

Operating Activity

Activities that involve the core business operations of a company, such as selling, managing, and producing goods and services.

Paying Interest

The act of providing compensation to lenders for the use of borrowed money, usually calculated as a percentage of the principal amount.

Related Questions