Subversion Repositories svn.mios

Rev

Rev 808 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 808 Rev 846
Line 64... Line 64...
64
    }
64
    }
65
65
66
    private JPanel createButtonPanel() {
66
    private JPanel createButtonPanel() {
67
        JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 4));
67
        JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 4));
68
68
69
        JLabel label = new JLabel("Sysex Send/Receive:", JLabel.LEFT);
69
        JLabel label = new JLabel("SysEx Send/Receive:", JLabel.LEFT);
70
        label.setOpaque(true);
70
        label.setOpaque(true);
71
        buttonPanel.add(label);
71
        buttonPanel.add(label);
72
        buttonPanel.add(Box.createHorizontalStrut(10));
72
        buttonPanel.add(Box.createHorizontalStrut(10));
73
73
74
        JButton button = new JButton("New Tab");
74
        JButton button = new JButton("New Tab");
Line 122... Line 122...
122
                SysexSendReceiveGUI sysexSendReceiveGUI = new SysexSendReceiveGUI(
122
                SysexSendReceiveGUI sysexSendReceiveGUI = new SysexSendReceiveGUI(
123
                        sysexSendReceive);
123
                        sysexSendReceive);
124
124
125
                sysexSendReceiveGUIs.add(sysexSendReceiveGUI);
125
                sysexSendReceiveGUIs.add(sysexSendReceiveGUI);
126
126
127
                tabbedPane.addTab("Sysex Send/Receive"
127
                tabbedPane.addTab("SysEx Send/Receive"
128
                        + (sysexSendReceiveManager.getSysexSendReceives()
128
                        + (sysexSendReceiveManager.getSysexSendReceives()
129
                                .indexOf(sysexSendReceive) + 1), ImageLoader
129
                                .indexOf(sysexSendReceive) + 1), ImageLoader
130
                        .getImageIcon("sysex.png"), sysexSendReceiveGUI);
130
                        .getImageIcon("sysex.png"), sysexSendReceiveGUI);
131
            }
131
            }
132
        }
132
        }
Line 160... Line 160...
160
        }
160
        }
161
161
162
        for (int i = 0; i < sysexSendReceiveManager.getSysexSendReceives()
162
        for (int i = 0; i < sysexSendReceiveManager.getSysexSendReceives()
163
                .size(); i++) {
163
                .size(); i++) {
164
164
165
            tabbedPane.setTitleAt(i, "Sysex Send/Receive " + (i + 1));
165
            tabbedPane.setTitleAt(i, "SysEx Send/Receive " + (i + 1));
166
        }
166
        }
167
    }
167
    }
168
168
169
    public void addNewSendReceiveTab() {
169
    public void addNewSendReceiveTab() {
170
        sysexSendReceiveManager.newSysexSendReceive();
170
        sysexSendReceiveManager.newSysexSendReceive();