JXcollapsible Pane

Hi Experts,
I have a very confusing problem.
I am trying to use a JXcollapisble Pane to display some information to the user.
I want Panel to expand on the click of a button.
I am trying to design this in Netbeans editor. I set the setCollapsed property to false and to true as per my need. But it does not work as I expected it to.
I set it to true to begin with. Yet the body of the pane is visible. Contents of the Pane are invisible.
I click on the button to expand the pane, the contents appear.
I click the button to make the pane collapse, nothing happens even though I see in the code that it is setting setCollapsed to true. The contents are still there too. They appear on the first click and never go away again. wierd!
Am I missing something very simple here?
Thanks for your help guys
Who is Participating?
objectsConnect With a Mentor Commented:
can you post your code
guyneoAuthor Commented:
Thanks Objects. I will post the code in a litle bit
guyneoConnect With a Mentor Author Commented:
I was making a simple version of the code to post here. It worked fine. A few days later It didn't work.
found out the lib file was corrupt.

guyneoAuthor Commented:
Thanks object for pushing me to post the code
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.