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:

Added Metal Jewelry

Jewelry that has been enhanced or embellished with additional metal elements, either for decoration or function.

Ife Ruler Portraits

A series of highly realistic and technically accomplished sculptures from the ancient city of Ife, Nigeria, thought to represent the likenesses of Ife's rulers and notable individuals from the 12th to 15th centuries.

Idealized

Artwork or representations created in a way that portrays subjects in a perfected or highly stylized form, often ignoring flaws.

Early Stone Age

The earliest period of the Stone Age, characterized by the use of rudimentary stone tools by early humans, also known as the Paleolithic era.

Related Questions