/**
 * Part of Employ
 */

import javax.swing.*;

public abstract class CommonFrame extends JFrame {

  JPanel panelHeading = new JPanel();

  // define common settings for all frame
  public CommonFrame(String heading) {
    super("Employ - " + heading);

    setSize(400, 200);
    setResizable(false);
    setLocationRelativeTo(null);
    setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));

    JLabel labelHeading = new JLabel(heading);
    panelHeading.add(labelHeading);
    add(panelHeading);

    setDefaultCloseOperation(EXIT_ON_CLOSE);
  }

}


/**
 * Part of Employ
 */

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

public abstract class CommonFrame extends JFrame {

  JPanel panelHeading;
  JLabel labelHeading;

  // define common settings for all frame
  public CommonFrame(String heading) {
    super("Employ - " + heading);

    setSize(400, 200);
    setResizable(false);
    setLocationRelativeTo(null);
    setLayout(new FlowLayout());

    panelHeading = new JPanel();
    labelHeading = new JLabel(heading);

    add(panelHeading);
    add(labelHeading);

    setDefaultCloseOperation(EXIT_ON_CLOSE);
  }

}


--- 
+++ 
@@ -2,13 +2,11 @@
  * Part of Employ
  */
 
-import java.awt.*;
 import javax.swing.*;
 
 public abstract class CommonFrame extends JFrame {
 
-  JPanel panelHeading;
-  JLabel labelHeading;
+  JPanel panelHeading = new JPanel();
 
   // define common settings for all frame
   public CommonFrame(String heading) {
@@ -17,13 +15,11 @@
     setSize(400, 200);
     setResizable(false);
     setLocationRelativeTo(null);
-    setLayout(new FlowLayout());
+    setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
 
-    panelHeading = new JPanel();
-    labelHeading = new JLabel(heading);
-
+    JLabel labelHeading = new JLabel(heading);
+    panelHeading.add(labelHeading);
     add(panelHeading);
-    add(labelHeading);
 
     setDefaultCloseOperation(EXIT_ON_CLOSE);
   }
Use BoxLayout for better component arrangement

Refer CommonFrame's content pane as the layout target container
with Y axis. Now it's a basic responsive Java design if resizeable.
