How to have Collapsable/Expandable JPanel in Java Swing

后端 未结 3 1004
我在风中等你
我在风中等你 2021-02-14 03:45

I want a JPanel that can be Collapsed or Expanded when user clicks on a text/icon on its border. I need this type of panel due to space crunch in my application.

I read

3条回答
  •  日久生厌
    2021-02-14 04:05

    not sure where you looked, but it's not that difficult to find - even given the infrastructure mess we are in ;-)

    Go to the project home of SwingX, then follow the link in the first paragraph to the (barebone) download section, down to releases\1.6.2. Nothing special to the collapsibles themselves, just containers to put components into.

提交回复
热议问题