Solved

JXcollapsible Pane

Posted on 2011-03-04
4
661 Views
Last Modified: 2013-11-23
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
0
Comment
Question by:guyneo
  • 3
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 35040831
can you post your code
0
 
LVL 1

Author Comment

by:guyneo
ID: 35180931
Thanks Objects. I will post the code in a litle bit
0
 
LVL 1

Assisted Solution

by:guyneo
guyneo earned 0 total points
ID: 36815773
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.

 
0
 
LVL 1

Author Closing Comment

by:guyneo
ID: 36908421
Thanks object for pushing me to post the code
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now