Package crazyOrb.musikplayer

Examples of crazyOrb.musikplayer.PlayerThread


    if (SpielGUI.getSpiel() == true) {
      Object quelle = e.getSource();
      if (quelle == btnOk) {
        gui.setBtnMusik();
        SpielGUI.musicThread.stop();
        SpielGUI.musicThread = new PlayerThread();
        auswahlLied();
        SpielGUI.musicThread.start();

      }
    }
View Full Code Here


    setJMenuBar(menue);
    JMenu spiel = new JMenu("Spiel");
    JMenu hilfe = new JMenu("?");

    musicThread = new PlayerThread();

    neu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.getKeyText(KeyEvent.VK_F2)));

    spiel.add(neu);
    spiel.add(highscore);
View Full Code Here

    if (quelle == neu) {
      mechanics.restart();

      btnMusik.setSelected(false);
      musicThread.stop();
      musicThread = new PlayerThread();
      PlayerThread.setLied(props.getSelectedTrack());
      musicThread.start();

      canvas.showString("Zum Starten P drücken!");
      setSpiel(true);
      repaint();
    }
    if (quelle == btnPause) {
      if (mechanics.isPaused()) {
        canvas.showString("");
        mechanics.resumeMovement();
      } else {
        canvas.showString("Fortsetzen? P drücken!");
        mechanics.pauseMovement();
      }
    }
    if (quelle == btnMusik) {
      if (spiel) {
        if (musicThread.isAlive()) {
          if (btnMusik.isSelected()) {
            musicThread.stop();
          }
        }
        if (btnMusik.isSelected() == false) {
          musicThread = new PlayerThread();
          musicThread.start();
        }
      }
    }
    canvas.requestFocus();
View Full Code Here

TOP

Related Classes of crazyOrb.musikplayer.PlayerThread

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.