new JLabels not showing in JPanel (doing revalidate&repaint)

the panel stays blank.
I've tried different layout managers as well, but lets assume its Flow for example's sake.
I did an extensive Google search, and this is a common question, however the common solution by revalidate() and repaint() methods does not work!

I made the following test program in NetBeans to demonstrate the problem:

Really? I even highlighted it for you in the original post. I really can't add much if you aren't even looking. ...
I will provide excerpts from my first post however:

Java Code:

...
getContentPane().setLayout(new java.awt.FlowLayout());
...

You are adding JLabels to panel not to the contentPane, and panel most definitely does not use FlowLayout but rather GroupLayout. Do you want me to point out the relevant code?

Thanks for trying but its not helpful.

Saying this will not motivate me to try to help further. If you are unsure about something we say, please ask for clarification, but it's not in your best interest to criticize free help that we give in our spare time.

Just a thought, you tried running the example program in my first post? I think it demonstrates the problem rather clearly.

Thanks but I've started there, and I have studied it. Hows this relevant to the problem anyway? I have objects that aren't being shown, I'm not concerned about the alignment at this point.

And yes, I ran your code, and yes, layouts and your understanding of them are fundamental to the problem. Again, you're farking your code by using GroupLayout here. But you can choose not to listen to my recommendations if you wish. Up to you.

Actually the problem came from Swing's strange inheritance of properties from parent objects, or rather the lack of it.
I'm a bit more used to VCL inheritance behavior where by default child objects inherit all formatting properties. Lesson learned.