1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2010 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
508 |
chnPane = CC.getMainFrame().getChannelsPane(i); |
chnPane = CC.getMainFrame().getChannelsPane(i); |
509 |
count++; |
count++; |
510 |
String s = "instrumentsdb.actions.loadInstrument.onPanel"; |
String s = "instrumentsdb.actions.loadInstrument.onPanel"; |
511 |
JMenu m = new JMenu(i18n.getMenuLabel(s, i + 1)); |
JMenu m = CC.getViewConfig().createMultiColumnMenu(i18n.getMenuLabel(s, i + 1)); |
512 |
for(int j = 0; j < chnPane.getChannelCount(); j++) { |
for(int j = 0; j < chnPane.getChannelCount(); j++) { |
513 |
SamplerChannelModel chn = chnPane.getChannel(j).getModel(); |
SamplerChannelModel chn = chnPane.getChannel(j).getModel(); |
514 |
m.add(new JMenuItem(factory.createLoadInstrumentAction(chn, true))); |
m.add(new JMenuItem(factory.createLoadInstrumentAction(chn, true))); |