How can I set a title for a panel in a java form?
===

I have created a JFrame and I want to add a panel when I select an item in my selection list or when I write its name in the textbox....how can I set its title? should I add a label or it has a property as its title?!!!

thanks in advance for your help.