93 |
|
|
94 |
protected final JToggleButton btnPower = new PowerButton(); |
protected final JToggleButton btnPower = new PowerButton(); |
95 |
private final FantasiaLabel lDisplay = new FantasiaLabel(" ", true); |
private final FantasiaLabel lDisplay = new FantasiaLabel(" ", true); |
96 |
|
//private final PitchWheel pitchWheel = new PitchWheel(); |
97 |
|
//private final ModWheel modWheel = new ModWheel(); |
98 |
private final JSPianoRoll pianoRoll = new JSPianoRoll(); |
private final JSPianoRoll pianoRoll = new JSPianoRoll(); |
99 |
private SamplerChannelModel channel = null; |
private SamplerChannelModel channel = null; |
100 |
|
|
136 |
gridbag.setConstraints(p, c); |
gridbag.setConstraints(p, c); |
137 |
add(p); |
add(p); |
138 |
|
|
139 |
|
/*c.gridx = 2; |
140 |
|
c.gridy = 1; |
141 |
|
c.gridheight = 1; |
142 |
|
c.insets = new Insets(0, 3, 5, 3); |
143 |
|
c.anchor = GridBagConstraints.CENTER; |
144 |
|
gridbag.setConstraints(pitchWheel, c); |
145 |
|
add(pitchWheel); |
146 |
|
|
147 |
|
c.gridx = 3; |
148 |
|
c.gridy = 1; |
149 |
|
c.insets = new Insets(0, 0, 5, 6); |
150 |
|
gridbag.setConstraints(modWheel, c); |
151 |
|
add(modWheel);*/ |
152 |
|
|
153 |
p = new KeyRangePropsPane(); |
p = new KeyRangePropsPane(); |
154 |
|
|
155 |
c.gridx = 2; |
c.gridx = 2; |
156 |
c.gridy = 0; |
c.gridy = 0; |
157 |
|
c.gridwidth = 3; |
158 |
c.gridheight = 1; |
c.gridheight = 1; |
159 |
c.insets = new Insets(0, 0, 0, 0); |
c.insets = new Insets(0, 0, 0, 0); |
160 |
c.fill = GridBagConstraints.NONE; |
c.fill = GridBagConstraints.NONE; |
165 |
|
|
166 |
p = new KeyRangePropsPane(); |
p = new KeyRangePropsPane(); |
167 |
|
|
168 |
c.gridx = 6; |
c.gridx = 8; |
169 |
c.gridy = 0; |
c.gridy = 0; |
170 |
|
c.gridwidth = 1; |
171 |
c.anchor = GridBagConstraints.EAST; |
c.anchor = GridBagConstraints.EAST; |
172 |
c.insets = new Insets(0, 0, 0, 10); |
c.insets = new Insets(0, 0, 0, 10); |
173 |
gridbag.setConstraints(p, c); |
gridbag.setConstraints(p, c); |
175 |
|
|
176 |
lDisplay.setPreferredSize(new Dimension(300, lDisplay.getPreferredSize().height)); |
lDisplay.setPreferredSize(new Dimension(300, lDisplay.getPreferredSize().height)); |
177 |
|
|
178 |
c.gridx = 4; |
c.gridx = 6; |
179 |
c.gridy = 0; |
c.gridy = 0; |
180 |
c.insets = new Insets(3, 3, 3, 12); |
c.insets = new Insets(3, 3, 3, 12); |
181 |
c.fill = GridBagConstraints.NONE; |
c.fill = GridBagConstraints.NONE; |
185 |
|
|
186 |
p = new JPanel(); |
p = new JPanel(); |
187 |
p.setOpaque(false); |
p.setOpaque(false); |
188 |
c.gridx = 3; |
c.gridx = 5; |
189 |
c.gridy = 0; |
c.gridy = 0; |
190 |
c.insets = new Insets(0, 0, 0, 0); |
c.insets = new Insets(0, 0, 0, 0); |
191 |
c.fill = GridBagConstraints.HORIZONTAL; |
c.fill = GridBagConstraints.HORIZONTAL; |
195 |
|
|
196 |
p = new JPanel(); |
p = new JPanel(); |
197 |
p.setOpaque(false); |
p.setOpaque(false); |
198 |
c.gridx = 5; |
c.gridx = 7; |
199 |
c.gridy = 0; |
c.gridy = 0; |
200 |
gridbag.setConstraints(p, c); |
gridbag.setConstraints(p, c); |
201 |
add(p); |
add(p); |
206 |
|
|
207 |
disablePianoRoll(); |
disablePianoRoll(); |
208 |
|
|
209 |
c.gridx = 2; |
c.gridx = 4; |
210 |
c.gridy = 1; |
c.gridy = 1; |
211 |
c.gridwidth = 5; |
c.gridwidth = 5; |
212 |
c.insets = new Insets(0, 3, 0, 12); |
c.insets = new Insets(0, 3, 0, 12); |
360 |
createVSeparator() { |
createVSeparator() { |
361 |
PixmapPane p = new PixmapPane(Res.gfxVLine); |
PixmapPane p = new PixmapPane(Res.gfxVLine); |
362 |
p.setAlignmentY(JPanel.TOP_ALIGNMENT); |
p.setAlignmentY(JPanel.TOP_ALIGNMENT); |
363 |
|
p.setMinimumSize(new Dimension(2, 30)); |
364 |
p.setPreferredSize(new Dimension(2, 60)); |
p.setPreferredSize(new Dimension(2, 60)); |
365 |
p.setMaximumSize(new Dimension(2, Short.MAX_VALUE)); |
p.setMaximumSize(new Dimension(2, Short.MAX_VALUE)); |
366 |
return p; |
return p; |