How to hide a panel in Java
I am working on a java questionnaire app, and there is one problem:
for example, there is two main questions, and the first main question has a subquestion, all the questions are sigle choice. Assuming that I click on one choice of the first main question, its subquestion should be triggered out and displayed between the first main question and the second question. If I click on the choice again, the subquestion should be disappeared.
How can I make the question panels show and hide animately? Can you just tell me the basic methods? Thank you.
How to hide a panel in Java
===

I am working on a java questionnaire app, and there is one problem:
for example, there is two main questions, and the first main question has a subquestion, all the questions are sigle choice. Assuming that I click on one choice of the first main question, its subquestion should be triggered out and displayed between the first main question and the second question. If I click on the choice again, the subquestion should be disappeared.
How can I make the question panels show and hide animately? Can you just tell me the basic methods? Thank you.