Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Embedding a video into a java app  RSS feed

 
Gav Mundo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people, I'm quite new to java and I'm currently studying it in uni but I have a problem.

I have a task where I have to find out how to embed a video into a java app using JMF, netbeans and swing,
Basically I'm just looking for someone to point me in the right direction of where to start or how to go about it, any help is much appreciated, thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An archive of the JMF sample code is available here. It includes the MDIApp class, which is a simple desktop media player.
 
Gav Mundo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the help guys, I'm going to take a look at them links now.

And I've had a look at the MDIApp class but I don't really know what to do with it, sorry I'm really new to this.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I've had a look at the MDIApp class but I don't really know what to do with it

It's an application - you can compile and run it.
 
Gav Mundo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:
And I've had a look at the MDIApp class but I don't really know what to do with it

It's an application - you can compile and run it.


I know but I don't know how to compile and run it, do I have to create my own class and compile it with that? I'm so lost.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MDIApp *is* a class. With all due respect, if you're confused about what is a class, and how you might go about compiling and running a one-class Java application, I suggest that you leave JMF well alone, and concentrate on learning the basics. Start here: http://download.oracle.com/javase/tutorial/, in particular the "Getting Started " section.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!