This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hi, I'm using a JSplitPane component with two JPanels inside each side of the SplitPane. I'm using OneTouchExpandable property of JSplitPane and setting it to true initially. When the split pane is first shown, both the panels are visible. Well, I want to add code when the divider is collapsed. What is the action performed for this just like action performed for jbutton? Please help. Thanks.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
set your own UI, overriding the createRight/LeftOneTuchButtons to add an actionListener to the button
If you are not using oneTouchExpandable you would include the width of the minimumSize of each component in the test to detect collapse.
seema prakash
Ranch Hand
Joined: Nov 17, 2004
Posts: 59
posted
0
Thanks for the help. I'm posting a snippet of my code so that it may be useful for someone who might have the same problem. I added a componentListener. Here is the code:
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.