88 |
import org.jsampler.view.InstrumentsDbTableModel; |
import org.jsampler.view.InstrumentsDbTableModel; |
89 |
import org.jsampler.view.InstrumentsDbTableView; |
import org.jsampler.view.InstrumentsDbTableView; |
90 |
import org.jsampler.view.std.JSInstrumentsDbTable; |
import org.jsampler.view.std.JSInstrumentsDbTable; |
|
import org.jsampler.view.std.JSInstrumentsDbTree; |
|
91 |
import org.jsampler.view.std.JSLostFilesDlg; |
import org.jsampler.view.std.JSLostFilesDlg; |
92 |
|
|
93 |
|
import org.jvnet.substance.SubstanceLookAndFeel; |
94 |
|
|
95 |
import org.linuxsampler.lscp.DbDirectoryInfo; |
import org.linuxsampler.lscp.DbDirectoryInfo; |
96 |
import org.linuxsampler.lscp.DbInstrumentInfo; |
import org.linuxsampler.lscp.DbInstrumentInfo; |
97 |
import org.linuxsampler.lscp.DbSearchQuery; |
import org.linuxsampler.lscp.DbSearchQuery; |
108 |
public class InstrumentsDbFrame extends JFrame { |
public class InstrumentsDbFrame extends JFrame { |
109 |
private final ToolBar toolbar; |
private final ToolBar toolbar; |
110 |
private final JMenuBar menuBar = new JMenuBar(); |
private final JMenuBar menuBar = new JMenuBar(); |
111 |
private final JSInstrumentsDbTree instrumentsDbTree; |
private final FantasiaInstrumentsDbTree instrumentsDbTree; |
112 |
private final SidePane sidePane; |
private final SidePane sidePane; |
113 |
private final JSplitPane splitPane; |
private final JSplitPane splitPane; |
114 |
private final MainPane mainPane; |
private final MainPane mainPane; |
131 |
setTitle(i18n.getLabel("InstrumentsDbFrame.title")); |
setTitle(i18n.getLabel("InstrumentsDbFrame.title")); |
132 |
if(Res.iconAppIcon != null) setIconImage(Res.iconAppIcon.getImage()); |
if(Res.iconAppIcon != null) setIconImage(Res.iconAppIcon.getImage()); |
133 |
|
|
134 |
instrumentsDbTree = new JSInstrumentsDbTree(CC.getInstrumentsDbTreeModel()); |
instrumentsDbTree = new FantasiaInstrumentsDbTree(CC.getInstrumentsDbTreeModel()); |
135 |
CC.addInstrumentsDbChangeListener(new ChangeListener() { |
CC.addInstrumentsDbChangeListener(new ChangeListener() { |
136 |
public void |
public void |
137 |
stateChanged(ChangeEvent e) { |
stateChanged(ChangeEvent e) { |
640 |
} |
} |
641 |
} |
} |
642 |
|
|
643 |
public JSInstrumentsDbTree |
public FantasiaInstrumentsDbTree |
644 |
getInstrumentsDbTree() { return instrumentsDbTree; } |
getInstrumentsDbTree() { return instrumentsDbTree; } |
645 |
|
|
646 |
public void |
public void |
688 |
MainPane() { |
MainPane() { |
689 |
setLayout(new BorderLayout()); |
setLayout(new BorderLayout()); |
690 |
JScrollPane sp = new JScrollPane(instrumentsTable); |
JScrollPane sp = new JScrollPane(instrumentsTable); |
691 |
|
sp.setOpaque(false); |
692 |
|
sp.getViewport().setOpaque(false); |
693 |
add(sp); |
add(sp); |
694 |
|
|
695 |
//instrumentsTable.setBackground(new java.awt.Color(0x626262)); |
//instrumentsTable.setBackground(new java.awt.Color(0x626262)); |