what's the right way to add a collapsible pane ?
The add( ) method in JXTaskPaneContainer is deprecated because it was already available; it's inherited from Component.
Just suppress or ignore the warning, because when the deprecated method is removed the Component add( will handle the call.
The title and post are talking about different classes, so I'm not sure what you want exactly.
As to why add(JXTaskPane) is deprecated, there is no need for it, add(Component) works just as well.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.