Subversion Repositories svn.mios

Rev

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

Rev 662 Rev 721
Line 330... Line 330...
330
        disconnectallButton.addActionListener(this);
330
        disconnectallButton.addActionListener(this);
331
        buttonPane.add(disconnectallButton, gbc);
331
        buttonPane.add(disconnectallButton, gbc);
332
        gbc.gridx++;
332
        gbc.gridx++;
333
333
334
        releaseButton = new JToggleButton("Release Ports", midiDeviceRouting
334
        releaseButton = new JToggleButton("Release Ports", midiDeviceRouting
335
                .getPortsReleased());
335
                .isPortsReleased());
336
        releaseButton.setToolTipText("Release MIDI Ports");
336
        releaseButton.setToolTipText("Release MIDI Ports");
337
        releaseButton.addActionListener(this);
337
        releaseButton.addActionListener(this);
338
        buttonPane.add(releaseButton, gbc);
338
        buttonPane.add(releaseButton, gbc);
339
339
340
        buttonPane.setOpaque(false);
340
        buttonPane.setOpaque(false);
Line 494... Line 494...
494
        int[] selectedReadIndices = midiReadDevicesList.getSelectedIndices();
494
        int[] selectedReadIndices = midiReadDevicesList.getSelectedIndices();
495
        int[] selectedWriteIndices = midiWriteDevicesList.getSelectedIndices();
495
        int[] selectedWriteIndices = midiWriteDevicesList.getSelectedIndices();
496
496
497
        connectButton.setEnabled(false);
497
        connectButton.setEnabled(false);
498
        disconnectButton.setEnabled(false);
498
        disconnectButton.setEnabled(false);
499
        releaseButton.setSelected(midiDeviceRouting.getPortsReleased());
499
        releaseButton.setSelected(midiDeviceRouting.isPortsReleased());
500
500
501
        if (selectedReadIndices.length > 0 && selectedWriteIndices.length > 0) {
501
        if (selectedReadIndices.length > 0 && selectedWriteIndices.length > 0) {
502
502
503
            for (int r = 0; r < selectedReadIndices.length; r++) {
503
            for (int r = 0; r < selectedReadIndices.length; r++) {
504
504