Subversion Repositories svn.mios

Rev

Rev 213 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 213 Rev 628
Line 28... Line 28...
28
28
29
import javax.swing.BorderFactory;
29
import javax.swing.BorderFactory;
30
import javax.swing.BoxLayout;
30
import javax.swing.BoxLayout;
31
import javax.swing.JPanel;
31
import javax.swing.JPanel;
32
32
33
import  org.midibox.sidedit.gui.controls.*;
33
import org.midibox.sidedit.gui.controls.SIDSysexParameterControlGUI;
34
34
35
public class ArpGUI extends JPanel{
35
public class ArpGUI extends JPanel {
36
    protected ArpGUI(Vector V1GUIv, Vector V2GUIv, Vector V3GUIv, Vector V4GUIv, Vector V5GUIv, Vector V6GUIv) {
36
    protected ArpGUI(Vector V1GUIv, Vector V2GUIv, Vector V3GUIv,
-
 
37
            Vector V4GUIv, Vector V5GUIv, Vector V6GUIv) {
37
        setLayout(new BorderLayout());
38
        setLayout(new BorderLayout());
38
        this.setOpaque(false);
39
        this.setOpaque(false);
39
       
40
40
        JPanel panel1 = new JPanel();
41
        JPanel panel1 = new JPanel();
41
        panel1.setLayout(new BoxLayout(panel1, BoxLayout.X_AXIS));
42
        panel1.setLayout(new BoxLayout(panel1, BoxLayout.X_AXIS));
Line 74... Line 75...
74
        subPanel1.setOpaque(false);
75
        subPanel1.setOpaque(false);
75
        GridBagConstraints c = new GridBagConstraints();       
76
        GridBagConstraints c = new GridBagConstraints();
76
        c.fill = GridBagConstraints.HORIZONTAL;
77
        c.fill = GridBagConstraints.HORIZONTAL;
77
        c.ipadx = 10;
78
        c.ipadx = 10;
78
        // First row
79
        // First row
-
 
80
        c.gridx = 0;
-
 
81
        c.gridy = 0;
79
        c.gridx = 0;c.gridy = 0;c.gridwidth=1;
82
        c.gridwidth = 1;
80
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(14), c);
83
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(14), c);
-
 
84
        c.gridx = 1;
-
 
85
        c.gridy = 0;
81
        c.gridx = 1;c.gridy = 0;c.gridwidth=2;
86
        c.gridwidth = 2;
82
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(15), c);
87
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(15), c);
83
           
88
84
        // Second row
89
        // Second row
-
 
90
        c.gridx = 0;
-
 
91
        c.gridy = 1;
85
        c.gridx = 0;c.gridy = 1;c.gridwidth=1;
92
        c.gridwidth = 1;
86
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(20), c);
93
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(20), c);
-
 
94
        c.gridx = 1;
-
 
95
        c.gridy = 1;
87
        c.gridx = 1;c.gridy = 1;c.gridwidth=1;
96
        c.gridwidth = 1;
88
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(23), c);
97
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(23), c);
-
 
98
        c.gridx = 2;
-
 
99
        c.gridy = 1;
89
        c.gridx = 2;c.gridy = 1;c.gridwidth=1;
100
        c.gridwidth = 1;
90
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(22), c);
101
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(22), c);
91
       
102
92
        JPanel subPanel2 = new JPanel();
103
        JPanel subPanel2 = new JPanel();
93
        subPanel2.setLayout(new GridLayout(2,3));
104
        subPanel2.setLayout(new GridLayout(2, 3));
94
        subPanel2.setOpaque(false);
105
        subPanel2.setOpaque(false);