Skip to content

Commit

Permalink
Added icons to media player
Browse files Browse the repository at this point in the history
  • Loading branch information
shai-almog committed Jul 25, 2016
1 parent f8105a1 commit f227d5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CodenameOne/src/com/codename1/components/MediaPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Display;
import com.codename1.ui.FontImage;
import com.codename1.ui.Image;
import com.codename1.ui.events.ActionEvent;
import com.codename1.ui.events.ActionListener;
Expand Down Expand Up @@ -67,12 +68,17 @@ public class MediaPlayer extends Container {
* Empty constructor
*/
public MediaPlayer() {
playIcon = FontImage.createMaterial(FontImage.MATERIAL_PLAY_ARROW, "Button", 3);
pauseIcon = FontImage.createMaterial(FontImage.MATERIAL_PAUSE, "Button", 3);
fwdIcon = FontImage.createMaterial(FontImage.MATERIAL_FAST_FORWARD, "Button", 3);
backIcon = FontImage.createMaterial(FontImage.MATERIAL_FAST_REWIND, "Button", 3);
}

/**
* Empty constructor
*/
public MediaPlayer(Media video) {
this();
this.video = video;
initUI();
}
Expand Down

0 comments on commit f227d5a

Please sign in to comment.