1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
104 |
|
|
105 |
optionsPane.setAlignmentX(LEFT_ALIGNMENT); |
optionsPane.setAlignmentX(LEFT_ALIGNMENT); |
106 |
|
|
107 |
initCollasiblePane(optionsPane); |
initCollapsiblePane(optionsPane); |
108 |
|
|
109 |
mainPane.add(optionsPane); |
mainPane.add(optionsPane); |
110 |
|
|
|
JPanel p2 = new JPanel(); |
|
|
|
|
111 |
confirmPane.setContentPane(confirmRemovalPane); |
confirmPane.setContentPane(confirmRemovalPane); |
112 |
confirmPane.setAlignmentX(LEFT_ALIGNMENT); |
confirmPane.setAlignmentX(LEFT_ALIGNMENT); |
113 |
initCollasiblePane(confirmPane); |
initCollapsiblePane(confirmPane); |
114 |
|
|
115 |
mainPane.add(confirmPane); |
mainPane.add(confirmPane); |
116 |
|
|
117 |
add(mainPane); |
add(mainPane); |
118 |
|
|
119 |
initCollasiblePane(mainPane); |
initCollapsiblePane(mainPane); |
120 |
mainPane.setCollapsed(false); |
mainPane.setCollapsed(false); |
121 |
} |
} |
122 |
|
|
123 |
private void |
private void |
124 |
initCollasiblePane(final JXCollapsiblePane pane) { |
initCollapsiblePane(final JXCollapsiblePane pane) { |
125 |
pane.setAnimated(false); |
pane.setAnimated(false); |
126 |
pane.setCollapsed(true); |
pane.setCollapsed(true); |
127 |
pane.setAnimated(preferences().getBoolProperty(ANIMATED)); |
pane.setAnimated(preferences().getBoolProperty(ANIMATED)); |