24 |
|
|
25 |
import java.awt.Container; |
import java.awt.Container; |
26 |
import java.awt.Cursor; |
import java.awt.Cursor; |
27 |
|
import java.awt.Dialog; |
28 |
import java.awt.Frame; |
import java.awt.Frame; |
29 |
import java.awt.Graphics; |
import java.awt.Graphics; |
30 |
import java.awt.Graphics2D; |
import java.awt.Graphics2D; |
31 |
import java.awt.Insets; |
import java.awt.Insets; |
32 |
|
|
33 |
|
import javax.swing.Action; |
34 |
import javax.swing.BorderFactory; |
import javax.swing.BorderFactory; |
35 |
import javax.swing.JButton; |
import javax.swing.JButton; |
36 |
import javax.swing.JComboBox; |
import javax.swing.JComboBox; |
43 |
import javax.swing.plaf.basic.BasicLabelUI; |
import javax.swing.plaf.basic.BasicLabelUI; |
44 |
import javax.swing.plaf.basic.ComboPopup; |
import javax.swing.plaf.basic.ComboPopup; |
45 |
|
|
46 |
|
import org.jsampler.view.InstrumentsDbTreeModel; |
47 |
|
|
48 |
|
import org.jsampler.view.std.JSDbInstrumentChooser; |
49 |
import org.jsampler.view.std.JSInstrumentChooser; |
import org.jsampler.view.std.JSInstrumentChooser; |
50 |
|
import org.jsampler.view.std.JSInstrumentsDbTree; |
51 |
|
|
52 |
import org.jvnet.lafwidget.animation.FadeConfigurationManager; |
import org.jvnet.lafwidget.animation.FadeConfigurationManager; |
53 |
import org.jvnet.lafwidget.animation.FadeKind; |
import org.jvnet.lafwidget.animation.FadeKind; |
89 |
|
|
90 |
protected JComboBox |
protected JComboBox |
91 |
createComboBox() { return createEnhancedComboBox(); } |
createComboBox() { return createEnhancedComboBox(); } |
92 |
|
|
93 |
|
protected JSDbInstrumentChooser |
94 |
|
createDbInstrumentChooser(Dialog owner) { |
95 |
|
return new DbInstrumentChooser(owner); |
96 |
|
} |
97 |
|
} |
98 |
|
|
99 |
|
private static class DbInstrumentChooser extends JSDbInstrumentChooser { |
100 |
|
DbInstrumentChooser(Dialog owner) { |
101 |
|
super(owner); |
102 |
|
} |
103 |
|
|
104 |
|
protected JButton |
105 |
|
createToolbarButton(Action a) { return new ToolbarButton(a); } |
106 |
|
|
107 |
|
protected JSInstrumentsDbTree |
108 |
|
createInstrumentsDbTree(InstrumentsDbTreeModel m) { |
109 |
|
return new FantasiaInstrumentsDbTree(m); |
110 |
|
} |
111 |
} |
} |
112 |
|
|
113 |
private static class ScreenLabel extends JLabel { |
private static class ScreenLabel extends JLabel { |