package com.samovich.cop2800.chapter15.assignmnet;

import javax.swing.*;
import java.awt.*;

/**
 * Contain the code for the interface and event handling
 * Filename SimpleTextEditorGUI
 * Created by Valery Samovich
 * Written on 7/27/16
 */
public class SimpleTextEditorGUI  extends JFrame {
    private JMenuBar mnuBar = new JMenuBar();
    private JMenu mnuFile = new JMenu("Edit");
    private JMenu mnuHelp = new JMenu("Help");

    public SimpleTextEditorGUI() {
        setLayout(new BorderLayout());
        setSize(360, 210);
        setJMenuBar(mnuBar);
        mnuBar.add(mnuFile);
        mnuBar.add(mnuHelp);
    }
}

@@ -85,16 +85,48 @@
 a.awt.*;
+%0Aimport java.awt.event.KeyEvent;
 %0A%0A/**%0A *
@@ -459,16 +459,234 @@
 Help%22);%0A
+    JPanel plnContent = new JPanel();%0A    JTextArea txtArea = new JTextArea(200, 100);%0A    JLabel lblFontSize = new JLabel(%22Font Size%22);%0A    JTextField txtSetSize = new JTextField();%0A%0A    /**%0A     * Constructor%0A     */
 %0A    pub
@@ -713,16 +713,43 @@
 GUI() %7B%0A
+        setSize(360, 210);%0A
         
@@ -794,108 +794,535 @@
  set
-Size(360, 210);%0A        setJMenuBar(mnuBar);%0A        mnuBar.add(mnuFile);%0A        mnuBar.add(mnuHelp
+JMenuBar(mnuBar);%0A        txtArea.setLineWrap(true);%0A        txtArea.setWrapStyleWord(true);%0A        // add constants from keyboard%0A        mnuFile.setMnemonic(KeyEvent.VK_F);%0A        mnuHelp.setMnemonic(KeyEvent.VK_H);%0A        // add menu%0A        mnuBar.add(mnuFile);%0A        mnuBar.add(mnuHelp);%0A        // text area%0A        plnContent.setLayout(new BorderLayout());%0A        plnContent.add(txtArea, BorderLayout.EAST);%0A        plnContent.add(lblFontSize);%0A        plnContent.add(txtSetSize);%0A        setContentPane(plnContent
 );%0A 

Add text filed: NOT COMPLETED