I am trying to make a collapsible pane and I am running into all kinds of problems (probably because I am very new to swing).
I want it to look something like this
(Collapsed look)
+ Panel One
+ Panel Two
+ Panel Three
(Expanded look)
- Panel One
Text Field 1
Text Field 2
- Panel Two
Text Field 1
Text Field 2
- Panel Three
Text Field 1
Text Field 2
Where + is collapsed and - is expanded. So really I want the +/- to either be icons or just use text. I was trying to implement this using swingx (Specifically JXCollapsiblePanel) but I am having trouble making it work with text as a button (since I don't really want it to look like a button) or with an icon. Has anyone ever done anything like this before? If so I could really use some help/direction.
Are there no APIs already out there that would do the trick? I think swingx might work really well but I cannot get it to do what I want (again it probably will but I am a rookie).