Examlex

Solved

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

question 11

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());
       -----Code here-----
       -----Code here-----
       -----Code here-----
       -----Code here-----
       -----Code here-----
       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 indicated lines to add components to each of the five regions (north, south, east, west and center).


Definitions:

Maturity Date

The date on which a financial obligation must be repaid in full.

Promissory Note

A financial instrument containing a written promise by one party to pay a definite sum of money to another party at a specified future date or on-demand.

Account Receivable

The amount customers are required to pay to a firm for goods and services already received but not yet paid for.

Payee

The party in a financial transaction who receives the payment.

Related Questions