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:

Dipeptide

A molecule consisting of two amino acids joined by a single peptide bond.

Dehydration Reaction

A chemical reaction in which two molecules are joined together with the removal of water, common in the synthesis of organic compounds.

Hydrolysis Reaction

Splitting of a chemical bond by the addition of water, with the H+ going to one molecule and the OH− going to the other.

Cholesterol

A waxy, fat-like substance found in all cells of the body, important for making hormones, vitamin D, and substances that help digest foods.

Related Questions