Package jrackattack.util

Examples of jrackattack.util.UserConfiguration


  private void chooseButtonActionPerformed(ActionEvent evt) {

    ResourceBundle bdl = ResourceBundle.getBundle("jrackattack.gui");
    boolean flag = false;
    UserConfiguration uc = UserConfiguration.getInstance();
    this.midiOutIndex = midiOutBox.getSelectedIndex();
    uc.putProperty(UserConfiguration.MIDI_OUT_DEVICE, midiOutIndex);
    MidiDevice.Info outInfo = midiOutBoxModel.getSelectedItem();
    this.midiInIndex = midiInBox.getSelectedIndex();
    uc.putProperty(UserConfiguration.MIDI_IN_DEVICE, midiInIndex);
    MidiDevice.Info inInfo = midiInBoxModel.getSelectedItem();
    MidiDevice.Info keyInfo = null;
    this.keyInIndex = keyboardInBox.getSelectedIndex();
    uc.putProperty(UserConfiguration.KEYBOARD_IN_DEVICE, keyInIndex);
    if (keyInIndex > 0) {
      keyInfo = keyboardInBoxModel.getSelectedItem();
    }
    try {
      MidiDevice inDev;
View Full Code Here


    int c = info.length;
    MidiDevice dev;
    keyboardInBoxModel.removeAll();
    midiInBoxModel.removeAll();
    midiOutBoxModel.removeAll();
    UserConfiguration uc = UserConfiguration.getInstance();
    if (keyInIndex == -1) {
      keyInIndex = uc.getIntProperty(
          UserConfiguration.KEYBOARD_IN_DEVICE, -1);
    }
    if (midiInIndex == -1) {
      midiInIndex = uc.getIntProperty(UserConfiguration.MIDI_IN_DEVICE,
          -1);
    }
    if (midiOutIndex == -1) {
      midiOutIndex = uc.getIntProperty(UserConfiguration.MIDI_OUT_DEVICE,
          -1);
    }
    try {
      keyboardInBoxModel.add(NULL_DEVICE_INFO);
      for (int i = 0; i < c; i++) {
View Full Code Here

TOP

Related Classes of jrackattack.util.UserConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.