Link to home
Start Free TrialLog in
Avatar of guyneo
guyneo

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of guyneo
guyneo

ASKER

Thanks Objects. I will post the code in a litle bit
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of guyneo

ASKER

Thanks object for pushing me to post the code