The JPanel is a simplest container class. It provides space in which an application can attach any other component. It inherits the JComponents class. It doesn't have title bar.
JFrame f= new JFrame("Panel Example");
JPanel panel=new JPanel();
JLabel lbl=new JLabel(“Testing label”);
panel.add(lbl);
f.add(panel);