Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added beep.mp3
Binary file not shown.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>jlayer</artifactId>
<version>1.0.1.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/org/time2java/tmodo/tModoFrame.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package org.time2java.tmodo;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Checkstyle] ERROR: Unused import - java.io.FileNotFoundException.

import java.io.IOException;
import javax.swing.JSlider;
import javax.swing.Timer;

Expand Down Expand Up @@ -148,6 +154,13 @@ private void setModelStopState() {
private void stopButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_stopButtonActionPerformed
setModelStopState();

try (FileInputStream fis = new FileInputStream("beep.mp3")) {
Player pl = new Player(fis);
pl.play();
} catch (JavaLayerException | IOException e){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Checkstyle] ERROR: '{' is not preceded with whitespace.

e.printStackTrace();
}

if (timer != null) {
timer.stop();
}
Expand Down
7 changes: 4 additions & 3 deletions toDo.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
1) add start time
2) add ubuntu integration like http://askubuntu.com/questions/49849/how-do-i-get-started-creating-an-ubuntu-desktop-app
3) add wallpaper and stop music
--4) show how many minute left--
3.1) add wallpaper
3.2) stop music (http://askubuntu.com/questions/97936/terminal-command-to-set-audio-volume)
~~4) show how many minute left~~
5) integrate with samsung and fit throught messager
6) add configurations
7) how many succesfull iter in day
8) todo todo list
9) add pip pip pip pip pip
~~9) add pip pip pip pip pip~~