/**
 * Part of Employ
 */

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

public class DashboardFrame extends CommonFrame implements ActionListener {

  JButton buttonAddData = new JButton("Add");
  JButton buttonDeleteData = new JButton("Delete");
  JTextField textNumber = new JTextField(10);
  JTextField textOutput = new JTextField(10);

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

    buttonAddData.setActionCommand("addData");
    buttonDeleteData.setActionCommand("deleteData");

    buttonAddData.addActionListener(this);
    buttonDeleteData.addActionListener(this);
    textNumber.addActionListener(this);

    add(buttonAddData);
    add(buttonDeleteData);
    add(textNumber);
    add(textOutput);
  }

  // define listener action when button "Add" is clicked
  public void actionPerformed(ActionEvent event) {
    String inputNumber = textNumber.getText();
    textOutput.setText(inputNumber);

    if (event.getActionCommand().equals("addData"))
      getContentPane().setBackground(Color.white);
    else if (event.getActionCommand().equals("deleteData"))
      getContentPane().setBackground(Color.darkGray);
    else
      getContentPane().setBackground(Color.black);

    repaint();
  }

}

@@ -275,24 +275,29 @@
 xtField text
+Input
 Number = new
@@ -336,16 +336,22 @@
 xtOutput
+Number
  = new J
@@ -653,24 +653,29 @@
 s);%0A    text
+Input
 Number.addAc
@@ -693,16 +693,57 @@
 r(this);
+%0A    textOutputNumber.setEditable(false);
 %0A%0A    ad
@@ -795,24 +795,29 @@
     add(text
+Input
 Number);%0A   
@@ -831,16 +831,22 @@
 xtOutput
+Number
 );%0A  %7D%0A%0A
@@ -854,107 +854,59 @@
  // 
-define listener action when button %22Add%22 is clicked%0A  public void actionPerformed(ActionEvent event
+get input number in text input%0A  void getTextInput(
 ) %7B%0A
@@ -934,16 +934,21 @@
 r = text
+Input
 Number.g
@@ -971,16 +971,22 @@
 xtOutput
+Number
 .setText
@@ -1000,16 +1000,227 @@
 umber);%0A
+  %7D%0A%0A  // clear input number in text input%0A  void clearInputNumber() %7B%0A    textOutputNumber.setText(%22%22);%0A  %7D%0A%0A  // define listener action when button is clicked%0A  public void actionPerformed(ActionEvent event) %7B
 %0A    if 
@@ -1277,47 +1277,18 @@
  get
-ContentPane().setBackground(Color.white
+TextInput(
 );%0A 
@@ -1356,53 +1356,25 @@
     
-getContentPane().setBackground(Color.darkGray
+clearInputNumber(
 );%0A 
@@ -1428,13 +1428,13 @@
 lor.
-black
+white
 );%0A%0A

Create button event with method