/**
 * Part of Employ
 */

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

public class DashboardFrame extends CommonFrame implements ActionListener {

  // define dashboard for special frame
  public DashboardFrame() {
    super("Dashboard");

    JButton buttonAddData = new JButton("Add");
    buttonAddData.addActionListener(this);
    add(buttonAddData);
  }

  // define listener action when button "Add" is clicked
  public void actionPerformed(ActionEvent event) {
    getContentPane().setBackground(Color.white);
    repaint();
  }

}

@@ -164,16 +164,207 @@
 ener %7B%0A%0A
+  JButton buttonAddData = new JButton(%22Add%22);%0A  JButton buttonDeleteData = new JButton(%22Delete%22);%0A  JTextField textNumber = new JTextField(10);%0A  JTextField textOutput = new JTextField(10);%0A%0A
   // def
@@ -456,49 +456,145 @@
     
-JB
+b
 utton
- buttonAddData = new JB
+AddData.setActionCommand(%22addData%22);%0A    buttonDeleteData.setActionCommand(%22deleteData%22);%0A%0A    b
 utton
-(%22
 Add
-%22
+Data.addActionListener(this
 );%0A 
@@ -594,35 +594,38 @@
 his);%0A    button
-Add
+Delete
 Data.addActionLi
@@ -646,189 +646,613 @@
     
-add(buttonAddData);%0A  %7D%0A%0A  // define listener action when button %22Add%22 is clicked%0A  public void actionPerformed(ActionEvent event) %7B%0A    getContentPane().setBackground(Color.white);
+textNumber.addActionListener(this);%0A%0A    add(buttonAddData);%0A    add(buttonDeleteData);%0A    add(textNumber);%0A    add(textOutput);%0A  %7D%0A%0A  // define listener action when button %22Add%22 is clicked%0A  public void actionPerformed(ActionEvent event) %7B%0A    String inputNumber = textNumber.getText();%0A    textOutput.setText(inputNumber);%0A%0A    if (event.getActionCommand().equals(%22addData%22))%0A      getContentPane().setBackground(Color.white);%0A    else if (event.getActionCommand().equals(%22deleteData%22))%0A      getContentPane().setBackground(Color.darkGray);%0A    else%0A      getContentPane().setBackground(Color.black);%0A
 %0A   

Add label and text field with application code