This is the forum for JIDE Common Layer which is open sourced at
https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.
Moderator: JIDE Support
Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.
by howudodat » Thu Oct 28, 2021 3:03 pm
Not sure what I'm doing wrong. I'm adding some test collapsible panes. They show collapsed, but shouldn't they fold up like an accordian?
- Code: Select all
JPanel pnl = new JPanel();
pnl.setLayout(new BoxLayout(pnl, BoxLayout.Y_AXIS));
pnl.setPreferredSize(new Dimension(780,440));
pnl.add(new JScrollPane(new PnlClientContacts()));
pnl.add(new JButton("Another Panel"));
pnl.add(new JButton("Another Panel 2"));
return pnl;
public class PnlClientContacts extends JPanel {
public PnlClientContacts() {
initUI();
}
protected void initUI() {
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
for (int x=0; x<10; x++) {
CollapsiblePane panel = new CollapsiblePane("Filter");
panel.setPreferredSize(new Dimension(100,100));
panel.setSlidingDirection(SwingConstants.SOUTH);
panel.setContentAreaFilled(true);
panel.setTitle("Contact");
if (x > 0) panel.collapse(true);
this.add(panel);
}
}
}

- Screenshot from 2021-10-28 14-56-00.png (25.15 KiB) Viewed 19919 times
-
howudodat
-
- Posts: 150
- Joined: Mon Feb 20, 2012 10:26 am
by howudodat » Thu Oct 28, 2021 3:15 pm
oops, never mind. I forgot it had to be in a CollapsiblePanes
-
howudodat
-
- Posts: 150
- Joined: Mon Feb 20, 2012 10:26 am
Return to JIDE Common Layer Open Source Project Discussion (Community Driven)
Who is online
Users browsing this forum: No registered users and 12 guests