...
>I'm trying to add a JLable 'jLable2 to another JLabel 'jLabel1'.
Why?
>..But
>jLabel2 is not getting displayed.
Try this variant that adds both JLabels directly to the JFrame.
If that is not the effect you are after, there are many alternatives,
including adding them both to a JPanel that is itself added to
one particular area of the BorderLayout of the JFrame.
<sscce>
import java.awt.BorderLayout;
import javax.swing.*;
public class LabelTest extends JFrame {
public LabelTest(){
setDefaultCloseOperation(
WindowConstants.EXIT_ON_CLOSE);
JLabel jLabel1 = new JLabel();
jLabel1.setText("jLabel1");
JLabel jLabel2 = new JLabel();
jLabel2.setText(" TEXT ");
//jLabel1.add(jLabel2);
getContentPane().add(
jLabel1, BorderLayout.CENTER);
getContentPane().add(
jLabel2, BorderLayout.EAST);
pack();
}
public static void main(String args[]) {
LabelTest lTest = new LabelTest ();
lTest.setSize(400,300);
lTest.setVisible(true);
}
}
</sscce>

Signature
Andrew Thompson
http://www.athompson.info/andrew/