46 |
import org.jsampler.CC; |
import org.jsampler.CC; |
47 |
|
|
48 |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
|
import static org.jvnet.substance.SubstanceLookAndFeel.SCROLL_PANE_BUTTONS_POLICY; |
|
|
import static org.jvnet.substance.api.SubstanceConstants.ScrollPaneButtonPolicyKind; |
|
49 |
|
|
50 |
|
|
51 |
/** |
/** |
84 |
add(p); |
add(p); |
85 |
|
|
86 |
p = createChannelsPane(); |
p = createChannelsPane(); |
87 |
p.setAlignmentX(LEFT_ALIGNMENT); |
p.addMouseListener(getHandler()); |
88 |
|
|
89 |
scrollPane = new JScrollPane(p); |
scrollPane = new JScrollPane(p); |
90 |
JScrollPane sp = scrollPane; |
JScrollPane sp = scrollPane; |
136 |
p.setOpaque(false); |
p.setOpaque(false); |
137 |
p.setBorder(BorderFactory.createEmptyBorder(7, 0, 0, 0)); |
p.setBorder(BorderFactory.createEmptyBorder(7, 0, 0, 0)); |
138 |
p.setMinimumSize(new Dimension(420, p.getMinimumSize().height)); |
p.setMinimumSize(new Dimension(420, p.getMinimumSize().height)); |
139 |
|
p.setAlignmentX(LEFT_ALIGNMENT); |
140 |
return p; |
return p; |
141 |
} |
} |
142 |
|
|
184 |
} |
} |
185 |
} |
} |
186 |
|
|
187 |
|
private final EventHandler eventHandler = new EventHandler(); |
188 |
|
|
189 |
|
private EventHandler |
190 |
|
getHandler() { return eventHandler; } |
191 |
|
|
192 |
|
private class EventHandler extends MouseAdapter { |
193 |
|
public void |
194 |
|
mouseClicked(MouseEvent e) { |
195 |
|
if(e.getButton() != e.BUTTON1) return; |
196 |
|
// TAG: channel selection system |
197 |
|
CC.getMainFrame().getChannelsPane(0).setSelectedChannel(null); |
198 |
|
/////// |
199 |
|
} |
200 |
|
} |
201 |
|
|
202 |
class NewChannelPane extends PixmapPane implements ActionListener { |
class NewChannelPane extends PixmapPane implements ActionListener { |
203 |
private final PixmapButton btnNew = new PixmapButton(Res.gfxPowerOff); |
private final PixmapButton btnNew = new PixmapButton(Res.gfxPowerOff); |
204 |
|
|